Open main menu

CDOT Wiki β

Changes

Profiling

244 bytes added, 13:03, 12 March 2018
no edit summary
# Instrumentation - adding code to the binary or using debug controls (such as breakpoints) to determine when and how often specific actions take place, such as entry/exit to/from a function/procedure/method.
== Profiling Tools == There are many profiling tools available. Open source options include:* gprof* perf* oprofile* SystemTap These tools provide different combinations of profiling capabilities, and may provide additional functions. === An example: Profiling with 'gprof' ===
The <code>gprof</code> tool provides basic profiling capability using a combination of sampling (for times) and instrumentation (for call graph and counts). To use it: