On Wed, Feb 25, 2009 at 08:20:48PM -0500, [email protected] wrote 0.4K bytes in 9 lines about: : One fine way to find out is to run oprofile and see what tor is doing. : you'll even find out the most popular calls as it's cranking away.
I took my own advice and ran 'valgrind --tool=callgrind' on my tor server. The resulting callgrind file can be found at http://interloper.org/tmp/tor/callgrind.out.23678.gz. One could use kcachegrind or other profiling programs to create pretty graphs or otherwise analyze the output. For example of a pretty graph, this is the callgraph of tor starting, http://interloper.org/tmp/tor/2009-02-27-tor-callgrind-0.png -- Andrew

