【问题标题】:Using profiling tools with rebar对钢筋使用分析工具
【发布时间】:2017-05-22 19:25:52
【问题描述】:

我正在使用 rebar3 来构建我的应用程序。我需要追踪一些性能问题并想使用 fprof,但它似乎没有包含在 rebar 发布的版本中。

如何在钢筋版本中包含 fprof(或 eprof)?

【问题讨论】:

    标签: erlang profiling rebar rebar3


    【解决方案1】:

    将应用程序 tools 添加到项目的 rebar.config 的 relx 部分:

    {relx, [{release, {<release name>, "0.0.1"},
             [<app>,tools]},
    
            {dev_mode, true},
            {include_erts, false},
    
            {extended_start_script, true}]}.
    

    tools 是包含 fprof 模块的应用程序。

    对于使用 fprof 模块,this 是来自 erlang 邮件列表的一个很好的入门级解释。 Here 是其他适用于 erlang 的分析工具。

    【讨论】:

      猜你喜欢
      • 2013-07-27
      • 1970-01-01
      • 2016-08-05
      • 2011-07-27
      • 2016-08-28
      • 2012-06-26
      • 2012-10-15
      • 2012-04-28
      • 2012-05-24
      相关资源
      最近更新 更多