[LLVMdev] Profiling dynamically loaded libraries
Domagoj Babic
babic.domagoj at gmail.com
Thu Jun 8 08:32:21 PDT 2006
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.
Domagoj
Other possibly relevant info:
Makefile contains:
LIBRARYNAME=Mylib
SHARED_LIBRARY=1
LOADABLE_MODULE=1
Platform: Suse Linux
gprof 2.15.94.0.2.2
gcc 3.3.5 20050117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060608/d9603c24/attachment.html>
More information about the llvm-dev
mailing list