trace patterns with fprof

Joel Reymont <>
Thu Jul 16 16:08:21 CEST 2009


Is there a way to use trace patterns with fprof to specify a list of  
{module,function,arity} that I want to include in or exclude from  
profiling?

I do this now to exclude gen_server, gen_fsm, proc_lib, etc.

fprof:trace([start, {procs, all}, file]),
erlang:trace_pattern(...)

It doesn't work, I think, since I see warnings when profiling:

fprof:profile([{dump, []}]).
Reading trace data...

Warning: {erlang,trace_pattern,3} called in "<0.80.0>" - trace may  
become corrupt!

Warning: {erlang,trace_pattern,3} called in "<0.80.0>" - trace may  
become corrupt!

Warning: {erlang,trace_pattern,3} called in "<0.80.0>" - trace may  
become corrupt!
..................................................

	Thanks, Joel

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list