cprof
cprof
Module
cprof
Module summary
A simple Call Count Profiling Tool using breakpoints for minimal runtime performance impact.
Description
The cprof
module is used to profile a program to find out how many times different functions are called. Breakpoints similar to local call trace, but containing a counter, are used to minimise runtime performance impact.
Since breakpoints are used there is no need for special compilation of any module to be profiled. For now these breakpoints can only be set on BEAM code so BIFs cannot be call count traced.
The size of the call counters is the host machine word size. One bit is used when pausing the counter, so the maximum counter value for a 32-bit host is 2147483647.
The profiling result is delivered as a term containing a sorted list of entries, one per module. Each module entry contains a sorted l