[R] how to profile R interpreter?

David Winsemius dwinsemius at comcast.net
Wed May 12 22:03:28 CEST 2010


On May 12, 2010, at 3:42 PM, xiaoming gu wrote:

> Thanks for your quick reply, David. Let me make myself more clear. I  
> tried Rprof, which only gives profiling information at script level.  
> My intention is to identify hot spots in R interpreter. I compiled R  
> interpreter with -pg for gprof. However, I couldn't generate  
> gmon.out when I ran the R interpreter with a script.

Could this possibly be handled better in R-devel? Doesn't sound like  
typical R usage.
>
> Xiaoming
>
> On Wed, May 12, 2010 at 3:34 PM, David Winsemius <dwinsemius at comcast.net 
> > wrote:
>
> On May 12, 2010, at 3:22 PM, xiaoming gu wrote:
>
> Hi, all. Does anyone know how to profile R interpreter? I've tried  
> gprof but
> it doesn't work. Thanks.
>
>
> ?Rprof
>
> # and perhaps
>
> ?system.time
>
> # or
>
> help(package=rbenchmark)
>
>
> Xiaoming
> -- 
-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list