I created a shared library "mylib.so" in the /tmp folder. I would like to profile mylib.so. To do this, i took following steps
- export LD_PROFILE_OUTPUT=${PWD}
- export LD_PROFILE= mylib.so
- export LD_LIBRARY_PATH=/tmp
- execute my_app, which is linked against mylib.so
After these 4 steps, i am "supposed" to have a mylib.so.profile in the /tmp folder. but there is no such file. My suspicion is that sprof cannot locate mylib.so. How can i tell sprof to look for mylib.so in the /tmp folder? I am using redhat enterprise linux 5.0.