mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-23 09:45:13 +01:00
fixed the import in the code snippet for profiling
This commit is contained in:
parent
d85051b7d6
commit
95951a6f5d
@ -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)
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user