Using profiling tools with rebar

I am using rebar3 to build my application. I need to track some performance issues and want to use fprof, but it does not seem to be included in the rebuild release.

How can I get fprof (or eprof) included in a rebar release?

+4
source share
1 answer

Add the tools application to the relx section of your rebar.config project:

{relx, [{release, {<release name>, "0.0.1"},
         [<app>,tools]},

        {dev_mode, true},
        {include_erts, false},

        {extended_start_script, true}]}.

tools is an application containing the fprof module .

fprof this erlang. - , erlang.

+4

Source: https://habr.com/ru/post/1666136/


All Articles