search for: ld_profile

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

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, gmon.out is not generated (or at least I can't find it anywhere on the fi...
2008 Jul 09
2
Does sprof work on CentOS5?
...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 profile, and mymain is the executable which links to it. This appears to create the profile dump successfully (which appears at /var/tmp/libmy.so.profile), but when I try to get a readable profile using sprof it fails: $ sprof libm...
2006 Jun 08
1
[LLVMdev] Profiling dynamically loaded libraries
Hi, Standard approach to profiling dynamically loaded libraries with gprof doesn't seem to work with LLVM: export LD_PROFILE=Mylib.so export LD_PROFILE_OUTPUT=. make ENABLE_PROFILING=1 // compiling my project opt -load Profile/Mylib.so -options... but no Mylib.so.profile (or gmon.out) is produced. Profiling libc.so.6 usage by "ls -l", however, works fine. Could anyone explain me what am I doing wrong? Thx....
2009 Jun 28
2
sprof works on your Debian/Ubuntu ?
...ile an package, and got errors, so I decided to follow BDR's (http://tolstoy.newcastle.edu.au/R/devel/06/02/4254.html) example exactly, and got same problem. Can anyone replicate? $ sudo mkdir -p /var/tmp//usr/lib/R/library/stats/libs $ chown -R pauljohn.pauljohn /var/tmp/usr/lib/R $ export LD_PROFILE=/usr/lib/R/library/stats/libs/stats.so $ R ### in R session, type >example(smooth.spline) > 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 40...
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