Confused as to how to interpret the readout

Code profiling for .NET Developers

Confused as to how to interpret the readout

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

I am profiling an app with ANTS 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.

Any ideas? Can this be legit?
Posts: 28
Joined: Wed Sep 24, 2008 11:36 pm

Postby AndrewH » Mon Jul 19, 2010 9: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.
Posts: 118
Joined: Thu Aug 17, 2006 2:44 pm

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

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

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest