I have gprof working fine on a linux system. I am getting samples and also some call count information. So I added the attribute ((hot)) to some functions. Now they have disapeared from the gprof sample output, only my none hot functions are "sampled". The hot functions still appear in the call count information. How do I fix this ?
I suspect one of two things has happened. gprof filters on what it thinks is relevent addresses and the hot functions are now outside this range as they are now in the .text.hot section. Or, somehow, there is some confusion in the debug data for the hot functions and so gprof is ignoring them.