Merged perfTests and fixed bugs

This commit is contained in:
Dominik Moritz Roth 2022-02-22 15:26:04 +01:00
parent 20afb205e3
commit 53a7b07c06
2 changed files with 4 additions and 2 deletions

View File

@ -1371,12 +1371,13 @@ def cliInterface():
args = parser.parse_args()
if args.perfTest:
if args.perf_test:
perfTestCLI(args)
else:
mainCLI(args)
def perfTestCLI(args):
import time
from pycallgraph import PyCallGraph
from pycallgraph import Config
from pycallgraph import GlobbingFilter
@ -1384,8 +1385,9 @@ def perfTestCLI(args):
config = Config()
config.trace_filter = GlobbingFilter(exclude=[
"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)
def mainCLI(args):

BIN
perfTests/1645539905.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB