diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hacking.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/hacking.txt b/doc/hacking.txt index 4c5a464..941dfde 100644 --- a/doc/hacking.txt +++ b/doc/hacking.txt @@ -82,3 +82,7 @@ You can also toss:: print >> sys.stderr, '-'*60, '\n', '\n'.join(traceback.format_stack()[-10:]) into the function itself for a depth-first caller list. + +For a more top-down approach, try:: + + $ python -c "import pstats; p=pstats.Stats('profile'); p.sort_stats('cumulative').print_callees(20)" |