There was an error while loading. Please reload this page.
1 parent 5737a6e commit 728c2bdCopy full SHA for 728c2bd
1 file changed
mrq/config.py
@@ -583,12 +583,12 @@ def get_config(
583
merged_config.update(extra)
584
585
if merged_config["profile"]:
586
- import cProfile
+ import cProfile, pstats
587
profiler = cProfile.Profile()
588
profiler.enable()
589
590
def print_profiling():
591
- profiler.print_stats(sort="cumulative")
+ pstats.Stats(profiler).sort_stats("cumulative").print_stats()
592
593
atexit.register(print_profiling)
594
0 commit comments