Re: [R] interpreting profiling output

From: Kasper Daniel Hansen <k.hansen_at_biostat.ku.dk>
Date: Wed 28 Jul 2004 - 09:26:46 EST

On Tue, Jul 27, 2004 at 06:17:10PM -0400, Liaw, Andy wrote:
> > From: Kasper Daniel Hansen
> >
> > On Tue, Jul 27, 2004 at 09:12:56AM +0200, Peter Dalgaard wrote:
> > >
> > > Hmm... You're using summaryRprof(), obviously. Do the
> > results match up
> > > with what you get from R CMD Rprof? Looking at the source for
> > > summaryRprof, I see that it uses this construction
> > >
> > > selft <- sapply(ls(envir = self), function(f) get(f, envir =
> > > self))
> > >
> > > which I suspect does not count function names that start
> > with a dot...
> >
> > It does not. Runnig everything through R CMD Rprof gives a much moe
> > sensible output. I have no further questions.
> >
> > Do I file a bug report on summaryRprof - it is certainly
> > unintentional
> > that it does not compute eg. .C calls when computing the self time?
>
> I thought I did see .C in the output of summaryRprof() at one time...

Well, I tried Peter's fix and it solves the problem for me. I have filed a bug report including the fix. Thanks for the help everyone.

-- 
Kasper Daniel Hansen, Research Assistant
Department of Biostatistics, University of Copenhagen

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jul 28 09:43:37 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:18 EST