Profiler/Analyzer for Erlang?

2019-02-16 07:21发布

Are there any good code profilers/analyzers for Erlang? I need something that can build a Call graph for my code.

3条回答
老娘就宠你
2楼-- · 2019-02-16 08:00

The 'fprof' module includes profiling features. From the fprof module documentation:

fprof:apply(foo, create_file_slow, [junk, 1024]).
fprof:profile().
fprof:analyse().

fprof:apply (or trace) runs the function, profile converts the trace file into something useful, and analyse prints out the summary. This will give you a list of function calls observed, what called them, and what they called, as well as wall-clock timing info.

查看更多
何必那么认真
4楼-- · 2019-02-16 08:12

For static code analysis you have XREF and DIALYZER, for profiling you can use cprof, fprof or eprof, you can get good reference here...

查看更多
登录 后发表回答