Erlang application profiling toolkit.
{yokogao, [
{log_dir, "log"}
]}
yokogao:trace_fun(fun erlang:memory/0, []).
Trace for one second.
yokogao:trace_for(1000).
{ok, File} = yokogao:start_trace("my_trace"),
%% do something
ok = yokogao:stop_trace(File).
You should find the .analysis
files in the log_dir
(default to log
) folder, e.g. fprof_9_12_10_49_4.analysis
.
Then you can convert it to callgrind output:
make grind FILE=fprof_9_12_10_49_4
this will produce a fprof_9_12_10_49_4.cgrind
file, which can be interpreted by kcachegrind
(qcachegrind
in OSX case).
Now you can do to inspect the results
qcachegrind log/fprof_9_12_10_49_4.cgrind