gprof has a lot of overhead. If you want a profile that only minimally changes your app/system behavior, you should check out 'Zoom' ( http://rotateright.com ) - it's commercial, but there's a free eval period.
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.