2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-23 17:55:04 +01:00

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

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)
"""