Skip to content

Commit 728c2bd

Browse files
committed
Add full paths in traces by default
1 parent 5737a6e commit 728c2bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mrq/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,12 +583,12 @@ def get_config(
583583
merged_config.update(extra)
584584

585585
if merged_config["profile"]:
586-
import cProfile
586+
import cProfile, pstats
587587
profiler = cProfile.Profile()
588588
profiler.enable()
589589

590590
def print_profiling():
591-
profiler.print_stats(sort="cumulative")
591+
pstats.Stats(profiler).sort_stats("cumulative").print_stats()
592592

593593
atexit.register(print_profiling)
594594

0 commit comments

Comments
 (0)