www.digitalmars.com         C & C++   DMDScript  

D.gnu - profiling

reply Carlos Santander <csantander619 gmail.com> writes:
-fprofile seems to do nothing (gdc 0.12). Is this intentional? Should I 
do something especial?

Also, does anybody know of a free profiler for Mac?

-- 
Carlos Santander Bernal
Jun 04 2005
parent reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
Carlos Santander wrote:
 -fprofile seems to do nothing (gdc 0.12). Is this intentional? Should I 
 do something especial?
 
 Also, does anybody know of a free profiler for Mac?
 
Use "-pg" instead of -fprofile (this applies to gcc as well). The standard GNU gprof program is installed with Mac developer tools. There is also the "Sampler" application, but that just takes timed samples. David
Jun 04 2005
parent Carlos Santander <csantander619 gmail.com> writes:
David Friedman escribió:
 Carlos Santander wrote:
 
 -fprofile seems to do nothing (gdc 0.12). Is this intentional? Should 
 I do something especial?

 Also, does anybody know of a free profiler for Mac?
Use "-pg" instead of -fprofile (this applies to gcc as well).
I'll try that.
 The standard GNU gprof program is installed with Mac developer tools. 
 There is also the "Sampler" application, but that just takes timed samples.
 
I was trying Sampler, Shark, etc., and they don't work for me. I don't know how to do console input/output with them. I need to enter some values, but I don't get a console. I'll try gprof. Thanks.
 David
 
 
 
-- Carlos Santander Bernal
Jun 04 2005