Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:profiling:gperftools [2015/06/19 12:19] – Add notes about profiling with gperftools techee | howtos:profiling:gperftools [2015/06/19 12:50] – Add a note about OS X techee | ||
---|---|---|---|
Line 26: | Line 26: | ||
In the above graph we can see the skipEverything() function takes 55.2% of total time so it looks like a good candidate for optimization. | In the above graph we can see the skipEverything() function takes 55.2% of total time so it looks like a good candidate for optimization. | ||
- | Note: I keep getting the < | + | **Note**: I keep getting the < |
- | Note: I wasn't able to get profiles with reasonable level of information from the GTK libraries provided by the system so if there is some GTK-related problem, it's best to compile GTK by yourself. | + | **Note**: I wasn't able to get profiles with reasonable level of information from the GTK libraries provided by the system so if there is some GTK-related problem, it's best to compile GTK by yourself. |
==== Profiling only part of the process runtime ==== | ==== Profiling only part of the process runtime ==== | ||
Line 49: | Line 49: | ||
google-pprof --web / | google-pprof --web / | ||
</ | </ | ||
+ | |||
+ | ==== OS X ==== | ||
+ | There' | ||
==== Other options ==== | ==== Other options ==== | ||
There are many additional options in gperftools and while I found the above sufficient for profiling Geany, there may be cases where some extra parameter may be necessary (such as filtering the graph to some subset, more frequent sampling, etc.). See the CPU profiler [[http:// | There are many additional options in gperftools and while I found the above sufficient for profiling Geany, there may be cases where some extra parameter may be necessary (such as filtering the graph to some subset, more frequent sampling, etc.). See the CPU profiler [[http:// |