Code profiling for .NET Developers
Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley
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 4:49 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: 1144
- Joined: Wed Jun 16, 2010 11:10 am
- Location: My desk.
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.
- Posts: 6670
- 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