Erlang Programming/Performance and Optimization

Profiling
There are a number of profiling libraries available:
 * cprof
 * eprof
 * fprof

Profiling of any kind has a runtime performance penalty - the reason for the different libraries above is their different trade-offs in terms of profiling precision and the performance penalty for using them.