I want to do a time-based profiling of an application written in C on HP-UX. I want to see which function is taking maximum amount of time, slowing down the operational duration. Is there a way to do it? I know I can use -p option in Linux and generate mon.out and then use prof command to generate the profile. But, I don't think that's the correct compiler option on HP-UX.
I would love to get some help here. I did find one similar answer here: Is there a profiler for C (gcc) to profile code lines separately?
However, I did not quite extract the thing I need, especially for HP-UX fro this post.