0

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.

E_net4 - Krabbe mit Hüten
  • 24,143
  • 12
  • 85
  • 121
Mariners
  • 349
  • 6
  • 16

1 Answers1

0

For hp-ux/ia64, you should be able to use Caliper (bundled with the OS)

caliper fprof -o fprof.out a.out

For hp-ux/parisc it used to be prospect or gprof, I can't find sources right now.

E_net4 - Krabbe mit Hüten
  • 24,143
  • 12
  • 85
  • 121
ranga
  • 334
  • 1
  • 4