search for: sprof

Displaying 5 results from an estimated 5 matches for "sprof".

Did you mean: prof
2008 Jul 09
2
Does sprof work on CentOS5?
No matter how I try, I can't seem to get a library profile from sprof on CentOS5. Does anyone know if sprof actually works on CentOS5? I'd be very interested to hear if anyone is using it successfully. At the moment I'm trying something like this to get the dump: LD_LIBRARY_PATH=. LD_PROFILE=libmy.so ./mymain where libmy.so is the library I want to...
2009 Jun 28
2
sprof works on your Debian/Ubuntu ?
...; q() Observe that does create the profile file: $ ls -la /var/tmp/usr/lib/R/library/stats/libs total 20 drwxr-xr-x 2 pauljohn pauljohn 4096 2009-06-28 14:26 . drwxr-xr-x 3 pauljohn pauljohn 4096 2009-06-28 14:25 .. -rw-r--r-- 1 pauljohn pauljohn 1356800 2009-06-28 14:26 stats.so.profile $ sprof /usr/lib/R/library/stats/libs/stats.so /var/tmp/usr/lib/R/library/stats/libs/stats.so.profile Inconsistency detected by ld.so: dl-open.c: 652: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! pauljohn at pols124:Siena-Profiling$ sudo sprof /usr/lib/...
2005 Feb 26
1
Profiling C functions called from R.
Hi, 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,
2009 Jun 26
3
beginner's guide to C++ programming with R packages?
...quot;package.Rcheck" and the shared objects and example code of the package are in there. Can I force R to use those *.so files instead of the ones in /usr/lib/R ? I also wonder "what is wrong with gprof? In the Writing R Extensions manual, it describes "oprofile" and "sprof" for Linux. I will try them, but they are unfamilar to me. I've used gprof in the past in C projects, and it is a pretty painless thing to add a compiler flag -pg, run the program, and then review gmon.out. The Writing R Extensions manual does not mention gprof in its section on Linux, b...
2010 Aug 12
2
Is oprofile still working?
Hi all, Is anyone using oprofile? I'm getting segfaults from opreport at the moment, and I'm not sure if it is opreport, or just me. In case it is something just plain daft I am doing, here is how it goes: opcontrol --reset opcontrol --setup --no-vmlinux opcontrol --start ... now I run my program, /tmp/myprog ... opcontrol --dump opcontrol --shutdown then I run, opreport -l