Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - function instrumentation not working for shared objects: Page 1 of 11 (11 Items)
   
function instrumentation not working for shared objects  
Hi,
today I tried to do some profling of a dll using the "new" Appplication Profiler 2 which is using the -finstrument-
functions.
I already did this for executable binaries and it is working fine.
Trying to apply this to a shared object seams to be not working.
I compiled the sources using -finstrument-functions and added -lprofilingS to the link list.
go ahead to the target side set QPROF_FILE and start a test binary which loads this shared object by forcing it to be 
load using LD_PRELOAD
The binary terminates as expected, but there is no *.ptrace file available as it is set in QPROF_FILE

Is this a bug, or is it expected not to work for shared objects.
give me a ping if to x-post to the IDE forum.

thanks
hp