Difference between revisions of "Speedprof"
From Apache OpenOffice Wiki
m (+1 category) |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
=== how to get it === | === how to get it === | ||
| − | Checkout 'memprof' from GNOME [http://developer.gnome.org/tools/ | + | Checkout 'memprof' from GNOME [http://developer.gnome.org/tools/svn.html SVN]: |
| − | + | svn co http://svn.gnome.org/svn/memprof/branches/sled-fixes/ memprof | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== install it === | === install it === | ||
| − | + | ./autogen.sh | |
make | make | ||
| − | make install | + | sudo make install |
=== how to use it === | === how to use it === | ||
| Line 33: | Line 24: | ||
* sometimes crashes the app - but hey, sometimes the app crashes under it's own steam too - hard to know whom to blame. | * sometimes crashes the app - but hey, sometimes the app crashes under it's own steam too - hard to know whom to blame. | ||
| − | * doesn't work well with old systems ( | + | * doesn't work well with old systems (pre TLS / NPTL) |
* doesn't like very long C++ symbols much - makes the columns somewhat unpleasant to use, needs some app tweakage. | * doesn't like very long C++ symbols much - makes the columns somewhat unpleasant to use, needs some app tweakage. | ||
| + | |||
| + | |||
| + | [[Category:Developer_Tools]] | ||
| + | |||
| + | [[Category:Performance]] | ||
Latest revision as of 02:13, 30 April 2008
what is it
Speedprof is an LD_PRELOAD based itimer (or hard real-time, or builtin CPU timer) based snapshot profiler. It samples at regular intervals (tweakable by reading the code ;-) and then presents a rather sexy data mining view so you can wind back full stack information - what function called what and when, self & cumulative times down trace paths etc.
how to get it
Checkout 'memprof' from GNOME SVN:
svn co http://svn.gnome.org/svn/memprof/branches/sled-fixes/ memprof
install it
./autogen.sh make sudo make install
how to use it
speedprof ./soffice.bin -writer
Of course, the most useful mode is to use the 'reset' button - ie. get OO.o going to the state you're interested in. Hit reset - do something slow - hit 'Profile' and wander the trace.
downsides
- sometimes crashes the app - but hey, sometimes the app crashes under it's own steam too - hard to know whom to blame.
- doesn't work well with old systems (pre TLS / NPTL)
- doesn't like very long C++ symbols much - makes the columns somewhat unpleasant to use, needs some app tweakage.