Line-by-line or method level?

Code profiling for .NET Developers

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

Line-by-line or method level?

Postby whiplash » Tue Apr 26, 2011 2:40 am

Which one is more accurate? If I choose method level, it says my program runs in 0.5 seconds. However, if I run it line-by-line, it says my code runs in 6 seconds. Which one is more accurate?

I am new to the program sorry :)
whiplash
 
Posts: 1
Joined: Tue Apr 26, 2011 2:38 am

Postby Chris.Allen » Tue Apr 26, 2011 3:29 pm

Method-level is always more accurate as it has less overhead.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 2 guests