Previous: Interactive Sessions, Up: Applications
Distel supports profiling function calls via the OTP fprof
application. This is a very convenient profiler, in that it doesn't
require any special compiler options or initialisation – you can use
it whenever you want.
fprof
)
fprof:analyse/1
. (fprof-analyse
)
After an expression is profiled, the results are popped up in “profiler results” buffer. The buffer contains one line to describe each function that was called, with the following columns:
Calls
ACC
Own
Furthermore, pressing RET on a summary line in the results buffer will pop up another buffer showing more information about the function: how much time it spent on behalf of each of its callers, and how much time it spent in each of its subfunctions.