Confused as to how to interpret the readout

Code profiling for .NET Developers

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

Confused as to how to interpret the readout

Postby rgelb » Sat Jul 17, 2010 1:31 am

I am profiling an app with ANTS 5.2.0.26 and I am getting a pretty unbelievable number from the WinForms app.

It seems that setting System.ComponentModel.IContainer to null (code generated by the designer) takes 5.x seconds.

http://imgur.com/vf4iZ

Any ideas? Can this be legit?
rgelb
 
Posts: 26
Joined: Thu Sep 25, 2008 12:36 am

Postby AndrewH » Mon Jul 19, 2010 10:35 am

This assignment will appear to the profiler as the first line of the method corresponding to the class constructor. If you have line-level timings turned off, or the profiler was unable to instrument the constructor, then this will indicate all of the time used in the constructor overall (same as any other method in the line-level display).

If line-level timings are enabled, this time may include some compiler-generated code that normally goes before the first line of the constructor is executed such as the call to the base class's constructor.
Andrew Hunter
Software Developer
Red Gate Software Ltd.
AndrewH
 
Posts: 134
Joined: Thu Aug 17, 2006 3:44 pm

Postby slaphead99 » Mon Jul 19, 2010 2:40 pm

Just another thought as well: Selecting "wall clock" time vs "CPU time" will generally give you much higher readings.
slaphead99
 
Posts: 92
Joined: Wed Mar 10, 2010 2:27 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests