[Rd] Profiling C functions called from R.

From: Pavel N. Krivitsky <pavel_at_stat.washington.edu>
Date: Sat 26 Feb 2005 - 12:53:32 EST


I am working on an R package which includes some C routines. I would like to profile the C routines (built with GCC under Debian Linux). I tried running R with

LD_PROFILE=/path/to/C/library.so R

and executing functions that would invoke the code therein. The code takes about twice as long to run with LD_PROFILE set than without, so I am guessing that profiling is taking place. However, gmon.out is not generated (or at least I can't find it anywhere on the filesystem).

Has anyone been able to profile shared libraries built for R in Linux?

                Thank you in advance,
                Pavel Krivitsky

R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Feb 26 12:58:30 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:59 EST