Erlang/OTP 有哪些分析器和分析器?

发布于 2024-07-08 09:38:49 字数 62 浏览 8 评论 0原文

Erlang 有没有好的代码分析器/分析器? 我需要一些可以为我的代码构建调用图(例如 gprof)的东西。

Are there any good code profilers/analyzers for Erlang? I need something that can build a call graph (eg gprof) for my code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

慢慢从新开始 2024-07-15 09:38:49

对于静态代码分析,您有 XrefDialyzer,您可以使用 cprof、fprof 或 eprof 进行分析,参考 此处

For static code analysis you have Xref and Dialyzer, for profiling you can use cprof, fprof or eprof, reference here.

顾冷 2024-07-15 09:38:49

“fprof”模块包括分析功能。 来自 fprof 模块文档

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

fprof:apply (或 trace)运行该函数,profile 将跟踪文件转换为有用的内容,analysis 打印出摘要。 这将为您提供观察到的函数调用的列表、调用它们的内容、它们调用的内容,以及挂钟计时信息。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文