eprof does not print results on short lived procs

Andy Till <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
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
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.