[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Puzzling shark output
On Mar 1, 2004, at 21:44, Scott Stevenson wrote:
> If I'm interpreting this right, It looks like Shark has decided that
> the ending curly bracket is taking 100% of the CPU time in this
> method.
>
> http://treehouseideas.com/downloads/shark/shark1.jpg
>
> I'm having a hard time getting reasonable results from Shark. It
> always highlights a single line at 100%, and the line is chooses
> usually seems questionable. Once it chose a simple ++i operation and
> labeled it 100%. This code is inside an embedded framework, if that
> matters.
Looking the picture you took, there is only one sample for the whole
function so highlighting
the "}" is okay as Shark is saying the one sample is in the epilogue
(the end) of the
function. The other case where you are talking about is most likely
the same problem is that
there is only one sample in the function so it highlights that one
sample.
Thanks,
Andrew Pinski