Re: [R] how to profile R interpreter?

2010-05-16 Thread Erich Neuwirth
Look for Rprof in the utils package.


On 5/12/2010 9: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.
 
 Xiaoming

-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Center for Computer Science Didactics and Learning Research
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39902 Fax: +43-1-4277-39459

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to profile R interpreter?

2010-05-16 Thread Sharpie


Erich Neuwirth wrote:
 
 Look for Rprof in the utils package.
 

This was already suggested- but the original poster clarified that he is
looking to profile the R interpreter it's self, not R scripts.

-
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: 
http://r.789695.n4.nabble.com/how-to-profile-R-interpreter-tp2196633p2218846.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] how to profile R interpreter?

2010-05-12 Thread xiaoming gu
Hi, all. Does anyone know how to profile R interpreter? I've tried gprof but
it doesn't work. Thanks.

Xiaoming

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to profile R interpreter?

2010-05-12 Thread David Winsemius


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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to profile R interpreter?

2010-05-12 Thread xiaoming gu
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 dwinsem...@comcast.netwrote:


 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]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] how to profile R interpreter?

2010-05-12 Thread David Winsemius


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 dwinsem...@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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.