Strange CPU time results...

Code profiling for .NET Developers

Strange CPU time results...

Postby ProfilerGuy » Tue Mar 06, 2012 3: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?

Posts: 1
Joined: Tue Mar 06, 2012 3:49 pm

Postby james.billings » Tue Mar 06, 2012 4: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?
Posts: 1121
Joined: Wed Jun 16, 2010 10:10 am
Location: Red Gate

Postby Brian Donahue » Wed Mar 14, 2012 2: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: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests