Skip to content
Prev 19550 / 63424 Next

profiling C code

On Mon, 20 Feb 2006, Liaw, Andy wrote:

            
grof is not mentioned in any of the R manuals, so what are your referring 
to?  (R-admin talks about `to compile a profiling version of R', not of 
shared libraries.)
You need to use sprof rather than gprof.  Here's one relevant thread:

http://tolstoy.newcastle.edu.au/~rking/R/devel/05/02/2351.html

and I am pretty sure there have been others.

Linux has very sketchy info on sprof.  However,

http://people.redhat.com/drepper/dsohowto.pdf

has some.  I've thought about putting something about this in the
R-exts manual