[tor-bugs] #1707 [Tor Relay]: We need a howto for running oprofile properly

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Sep 12 08:54:21 UTC 2010


#1707: We need a howto for running oprofile properly
-------------------------+--------------------------------------------------
 Reporter:  nickm        |       Owner:  weasel  
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:          
Component:  Tor Relay    |     Version:          
 Keywords:               |      Parent:          
-------------------------+--------------------------------------------------

Comment(by weasel):

 <weasel> - build tor with debugging symbols (you probably already have)
 <weasel> - build all the libraries you care about with debugging symbols
 (probably you only care about libssl, maybe zlib)
 <weasel> - copy this tor to a new directory
 <weasel> - copy all the libraries it uses to that dir too (ldd ./tor will
 tell you)
 <weasel> - set LD_LIBRARY_PATH to include that dir.  ldd ./tor should now
 show you it's using the libs in that dir
 <weasel> - run that tor
 <weasel> - reset oprofiles counters/start it
 <weasel> - after a while, have it dump the stats on tor and all the libs
 in that dir you created.
 <weasel> - profit
 <Sebastian> Is there a reason not to care about libevent?
 <weasel> don't know
 <weasel> your profile will tell you afterwards

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1707#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list