J
Joe Withawk
I have a problem with an application which runs smoothly but once every few
seconds shudder.
Having used the .net stopwatch class I now know that a certain loop
generally runs very quickly but sometimes it takes ten times as long.
The loop is not trivial so the easiest way for me to find the reason for the
delay would be to profile it in such a way that I can see the time each call
to it takes and not just the accumulated time.
Generally if a method is called ten times and each call takes 1ms then you
see that that method used 10*1ms time.
I would like to see a list of ten measurements of 1ms each.
With my current problem it would be a list of perhaps 1000 calls each taking
5ms and a few calls taking 50 ms. Then I would look at the long calls and
see what happens.
I do not beleive I have seen a profiler which gives this detail level, but
perhaps someone else has? Or perhaps someone has a suggestion as to what
might be an alternative?
seconds shudder.
Having used the .net stopwatch class I now know that a certain loop
generally runs very quickly but sometimes it takes ten times as long.
The loop is not trivial so the easiest way for me to find the reason for the
delay would be to profile it in such a way that I can see the time each call
to it takes and not just the accumulated time.
Generally if a method is called ten times and each call takes 1ms then you
see that that method used 10*1ms time.
I would like to see a list of ten measurements of 1ms each.
With my current problem it would be a list of perhaps 1000 calls each taking
5ms and a few calls taking 50 ms. Then I would look at the long calls and
see what happens.
I do not beleive I have seen a profiler which gives this detail level, but
perhaps someone else has? Or perhaps someone has a suggestion as to what
might be an alternative?