Profiler/Analyzer for Erlang?

牧云@^-^@ 提交于 2019-12-30 07:57:10

问题


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


回答1:


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




回答2:


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.




回答3:


Try this one: https://github.com/virtan/eep You could get something like this https://raw.github.com/virtan/eep/master/doc/sshot1.png



来源:https://stackoverflow.com/questions/204926/profiler-analyzer-for-erlang

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!