Skip to content

Commit

Permalink
Root trace point should collect full duration of imports
Browse files Browse the repository at this point in the history
It's very simple to make root point collect duration of all operation
this change does this
  • Loading branch information
boris-42 committed Apr 2, 2015
1 parent 04b8651 commit 154d771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profimp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def print_help():
def trace_module(import_line):
root_pt = tracer.init_stack()
with tracer.patch_import():
exec(import_line)
with root_pt:
exec(import_line)
return root_pt


Expand Down

0 comments on commit 154d771

Please sign in to comment.