Skip to content

Commit

Permalink
Merge pull request #5 from boris-42/improve_main
Browse files Browse the repository at this point in the history
Root trace point should collect full duration of imports
  • Loading branch information
boris-42 committed Apr 2, 2015
2 parents 04b8651 + 154d771 commit 09a8939
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 09a8939

Please sign in to comment.