Strange CPU time results...

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Strange CPU time results...

Postby ProfilerGuy » Tue Mar 06, 2012 4:53 pm

Hi Red Gate team,

I have a special case in which I get quite strange cpu timings. How do you meassure cpu timings? Do you use time stamp counter?

Regards,
Peter
ProfilerGuy
 
Posts: 1
Joined: Tue Mar 06, 2012 4:49 pm

Postby james.billings » Tue Mar 06, 2012 5:24 pm

Thanks for your post - I'm not personally aware of the precise details of how we capture timings - a previous query in-house resulted in the answer that its by intercepting the lower level calls made by .NET. In itself that may not help you- can you give a bit more detail about the problem you're experiencing, as it may be something we've come across before?
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby Brian Donahue » Wed Mar 14, 2012 3:22 pm

The way I understand, the .NET Profiling interface provided by Microsoft provides the method entry and method exit times. Then it's a matter of counting the ticks inbetween. So on XP there is a speedstep issue but for most other operating systems, if there is anything untowards, it's usually caused by bodged overhead calculations. ANTS attempts to subrtact the time it took in your process from the results. It is possible to turn overhead correction off in the settings.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests