fixed the import in the code snippet for profiling

This commit is contained in:
Thomas Nagy 2012-02-20 02:06:16 +01:00
parent d85051b7d6
commit 95951a6f5d
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def waf_entry_point(current_directory, version, wafdir):
"""
import cProfile, pstats
cProfile.runctx("import Scripting; Scripting.run_commands()", {}, {}, 'profi.txt')
cProfile.runctx("from waflib import Scripting; Scripting.run_commands()", {}, {}, 'profi.txt')
p = pstats.Stats('profi.txt')
p.sort_stats('time').print_stats(25)
"""