2. cprof - The Call Count Profiler
2 cprof - The Call Count Profiler
cprof
is a profiling tool that can be used to get a picture of how often different functions in the system are called.
cprof
uses breakpoints similar to local call trace, but containing counters, to collect profiling data. Therfore there is no need for special compilation of any module to be profiled.
cprof
presents all profiled modules in decreasing total call count order, and for each module presents all profiled functions also in decreasing call count order. A call count limit can be specified to filter out all functions below the limit.
Profiling is done in the following steps:
cprof:start/0..3
- Starts profiling with zeroed call counters for specified functions by setting call count breakpoints on them.
Mod:Fun()
登录查看完整内容