Profiling

From Notes_Wiki
Revision as of 06:43, 7 October 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Erlang|Erlang</yambe:breadcrumb> =Profiling= To profile Erlang programs use: <pre> 1> fprof:apply(fun mod:name/arity, [Args]). 2> fprof:profile(). 3> fprof:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Erlang|Erlang</yambe:breadcrumb>

Profiling

To profile Erlang programs use:

1> fprof:apply(fun mod:name/arity, [Args]).
2> fprof:profile().
3> fprof:analyse().

Use "erl -man fprof" and see analysis example at end of man page for more details.