[R] interpreting profiling output
Kasper Daniel Hansen
k.hansen at biostat.ku.dk
Wed Jul 28 01:26:46 CEST 2004
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
More information about the R-help
mailing list