Changeset 1017 for trunk/examples/bench/bigtable.py
- Timestamp:
- Mar 9, 2009, 5:14:43 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/examples/bench/bigtable.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/bench/bigtable.py
r706 r1017 220 220 221 221 if '-p' in sys.argv: 222 import hotshot, hotshot.stats223 prof = hotshot.Profile("template.prof")224 benchtime = prof.runcall(run, which, number=1)225 stats = hotshot.stats.load("template.prof")222 import cProfile, pstats 223 prof = cProfile.Profile() 224 prof.run('run(%r, number=1)' % which) 225 stats = pstats.Stats(prof) 226 226 stats.strip_dirs() 227 227 stats.sort_stats('time', 'calls') 228 stats.print_stats() 228 stats.print_stats(25) 229 if '-v' in sys.argv: 230 stats.print_callees() 231 stats.print_callers() 229 232 else: 230 233 run(which)
Note: See TracChangeset
for help on using the changeset viewer.
