Performance
| The profiler | |
| Bif timeline | |
| Runtime flags | |
| Good habits |
The profiler
The profiler sample function calls and answers a report of the hottest functions. Run it for a few seconds during normal load, and the report names the functions that take the most time.
1> profiler:start(?MODULE).
ok
2> profiler:stop().
ok
3> profiler:report().
Total time: 1234 us
average: 0.56 us
----
my_func: 342 calls, 1234 us total
Next: Modern Erlang tour
Article author: Arthur Isaev