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.