projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ab6ba
)
Mention Stats.print_callees() in doc/hacking.txt.
author
W. Trevor King
<wking@drexel.edu>
Thu, 12 May 2011 13:44:55 +0000
(09:44 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 12 May 2011 13:44:55 +0000
(09:44 -0400)
doc/hacking.txt
patch
|
blob
|
history
diff --git
a/doc/hacking.txt
b/doc/hacking.txt
index 4c5a4640b2886677bbd121be23911add887d4033..941dfde1e83292b4cded127bdf38f0d1f378b99e 100644
(file)
--- 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)"