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.

Xiaoming

On Wed, May 12, 2010 at 3:34 PM, David Winsemius <dwinsemius@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
>
>

	[[alternative HTML version deleted]]

