Author Topic: Using gprof  (Read 529 times)


  • New member
  • *
  • Posts: 5
Using gprof
« on: March 10, 2019, 02:17:58 am »
I use Free Pascal for my webapp, TransSee. I have successfully used Valgrind/Callgrind for profiling, but I wanted a time-based profiler rather then a instruction count based profiler.

I tried to do a compile using the -pg option to enable the gprof profiler, but I get these link errors with ppcx64.

Code: [Select]
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/lib64/libc_nonshared.a(atexit.oS): In function `atexit':
(.text+0x27): undefined reference to `__dso_handle'
/usr/bin/ld: tracker: hidden symbol `__dso_handle' isn't defined
/usr/bin/ld: final link failed: Bad value

This is running on a Gentoo Linux system.