Mention Stats.print_callees() in doc/hacking.txt.
authorW. Trevor King <wking@drexel.edu>
Thu, 12 May 2011 13:44:55 +0000 (09:44 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 12 May 2011 13:44:55 +0000 (09:44 -0400)
doc/hacking.txt

index 4c5a4640b2886677bbd121be23911add887d4033..941dfde1e83292b4cded127bdf38f0d1f378b99e 100644 (file)
@@ -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)"