Merged perfTests and fixed bugs
This commit is contained in:
parent
20afb205e3
commit
53a7b07c06
@ -1371,12 +1371,13 @@ def cliInterface():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.perfTest:
|
if args.perf_test:
|
||||||
perfTestCLI(args)
|
perfTestCLI(args)
|
||||||
else:
|
else:
|
||||||
mainCLI(args)
|
mainCLI(args)
|
||||||
|
|
||||||
def perfTestCLI(args):
|
def perfTestCLI(args):
|
||||||
|
import time
|
||||||
from pycallgraph import PyCallGraph
|
from pycallgraph import PyCallGraph
|
||||||
from pycallgraph import Config
|
from pycallgraph import Config
|
||||||
from pycallgraph import GlobbingFilter
|
from pycallgraph import GlobbingFilter
|
||||||
@ -1384,8 +1385,9 @@ def perfTestCLI(args):
|
|||||||
config = Config()
|
config = Config()
|
||||||
config.trace_filter = GlobbingFilter(exclude=[
|
config.trace_filter = GlobbingFilter(exclude=[
|
||||||
"pycallgraph.*",
|
"pycallgraph.*",
|
||||||
|
"numpy.*"
|
||||||
])
|
])
|
||||||
with PyCallGraph(output=GraphvizOutput(output_file='perfTests/serve_httpd_' + str(int(time.time())) + '.png'), config=config):
|
with PyCallGraph(output=GraphvizOutput(output_file='perfTests/' + str(int(time.time())) + '.png'), config=config):
|
||||||
mainCLI(args)
|
mainCLI(args)
|
||||||
|
|
||||||
def mainCLI(args):
|
def mainCLI(args):
|
||||||
|
BIN
perfTests/1645539905.png
Normal file
BIN
perfTests/1645539905.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 MiB |
Loading…
Reference in New Issue
Block a user