Skip to content

stwind/yokogao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yokogao

Erlang application profiling toolkit.

Usage

Config

{yokogao, [
	{log_dir, "log"}
]}

Tracing

Tracing Function

yokogao:trace_fun(fun erlang:memory/0, []).

Tracing for a period

Trace for one second.

yokogao:trace_for(1000).

Custom tracing period

{ok, File} = yokogao:start_trace("my_trace"),
%% do something
ok = yokogao:stop_trace(File).

Analyzing

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

About

Erlang Application Profiling Toolkit.

Resources

Stars

Watchers

Forks

Packages

No packages published