4

I'm using rebar3 to build my application. I need to track down some performance problems and want to use fprof but it doesnt seem to be included in the release made by rebar.

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

usernolan
  • 139
  • 9
Daniel
  • 43
  • 2

1 Answers1

4

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

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

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

        {extended_start_script, true}]}.

tools is the application containing fprof module.

For using the fprof module, this is a good entry-level explanation from the erlang mailing list. Here are other profiling tools applicable to erlang.

usernolan
  • 139
  • 9
byaruhaf
  • 4,128
  • 2
  • 32
  • 50