[erlang-bugs] eprof does not print results on short lived procs

Andy Till atill@REDACTED
Sun Feb 1 12:19:07 CET 2015


Hi

When I spawn a process to run eprof, no results get printed.  For 
example if this is run from the shell:

Self = self().
eprof:start().
Eprof_fn = fun() ->
     eprof:start_profiling([Self]),
     timer:sleep(2000),
     eprof:stop_profiling(),
     eprof:analyze(total)
end.
Eprof_fn().
spawn(Eprof_fn).

I would expect this to print out the results twice but only the profile 
run from the shell process prints out.  Running this in a different 
orders does not help.

This also affects RPC.  I had a module containing a function similar to 
that above which would not print results to a file when called from a 
remote node.

Cheers

Andy



More information about the erlang-bugs mailing list