GPROF flat profile empty result

Viewed 1487

I'm trying to use gprof (I have to use gprof - no other option is available) when I get the flat file the result is empty even though everything works fine.

By the way, the code is in c so I'm using gcc.

Result:

Each sample counts as 0.01 seconds.
no time accumulated

%   cumulative   self              self     total           
time   seconds   seconds    calls  Ts/call  Ts/call  name    

What can I do to fix this? Thank you.

1 Answers

You can use gcc -no-pie option as a workaround.

Related