Red Gate forums :: View topic - Line-level timings problem?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 7
ANTS Performance Profiler 7 forum

Line-level timings problem?

Search in ANTS Performance Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
aprilia_racing



Joined: 01 Aug 2012
Posts: 2

PostPosted: Wed Aug 01, 2012 8:32 am    Post subject: Line-level timings problem? Reply with quote

Hi everyone,
I started using the performance profiler a couple of months ago, thus I'm probably not so skilled in it.

I'm profiling a part of my .Net 4 application, precisely the one that has to make a lot of math computation. To simplify, suppose we a have a "for" statement looping a lot (about 500 thousands) of times. Within the statement there's the code the makes the actual computation on some signals samples.

The problem is that each time I profile my code (using always the same set of input data) I have different timing information, even the one that refers to the "for" first row (I mean: for (int i = 0; ... ) ).
Since I'm using "Line-level and method-level timings; all methods" profiling mode, I thought the timing values were "pure" execution times (I mean, they don't depend on what else my pc is running).

I'm using ANTS Performance Profiler 7.3 Professional.

Thanks a lot for,
have a nice day
_________________
Marco Stevanato

Software Engineer
Aprilia Racing S.r.l.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Thu Aug 02, 2012 12:44 pm    Post subject: Reply with quote

Thanks for your post.

The line-level timing is actually the most *detailed* but not the most *accurate*. The profiler tries to adjust timings to counteract the effect profiling has on the performance of the application and this is actually less reliable on line-level timing. This could easily mean you get slightly different results each time you run.

We explain the various modes on this page and you'll see that method level (only with source) is the most 'accurate'
Back to top
View user's profile Send private message
aprilia_racing



Joined: 01 Aug 2012
Posts: 2

PostPosted: Mon Aug 20, 2012 8:52 am    Post subject: Ok Reply with quote

Thanks a lot for your answer, I'll take a look at the link you gave me.

Have a nice day
_________________
Marco Stevanato

Software Engineer
Aprilia Racing S.r.l.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group