aboutsummaryrefslogtreecommitdiffstats
path: root/doc/hacking.txt
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-05-12 09:44:55 -0400
committerW. Trevor King <wking@drexel.edu>2011-05-12 09:44:55 -0400
commitef9efac025ff5f31d5e2c2b7fa5331fd52bf80eb (patch)
treeb5ea75d17b3c74998aa6625092f59da1ce9a69fd /doc/hacking.txt
parent34ab6bac16d20365d24886fc6b3c3b1b9e23f5ea (diff)
downloadbugseverywhere-ef9efac025ff5f31d5e2c2b7fa5331fd52bf80eb.tar.gz
Mention Stats.print_callees() in doc/hacking.txt.
Diffstat (limited to 'doc/hacking.txt')
-rw-r--r--doc/hacking.txt4
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)"