[R] gprof / prof of shared library
rex.dwyer@syngenta.com
rex.dwyer at syngenta.com
Fri Feb 28 20:12:04 CET 2003
I have inherited a legacy S-plus system with about 10,000 lines of S and
10,000 lines of
Fortran. It's now running under R. However, I would like to profile the
fortran code with gprof or prof for performance tuning. I've successfully
linked the .so file into a simple C driver program and profiled, but I can't
seem to get profiling to work when using dyn.load() to use it from R. Do I
have to use .C() to call some monitor initialization procedure explicitly?
The /var/tmp/foo.so.profile file is never created.
I'm using R 1.6.2 and I have the same problem under both SunOS 5.8 and under
Red Hat Linux 7.3 with 2.4.18-openmosix4smp kernel.
Has anyone had any success with this sort of profiling?
Rex Dwyer
Syngenta Biotechnology Inc.
Research Triangle Park, North Carolina
More information about the R-help
mailing list