Code profiling for .NET Developers
Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley
I am profiling an app with ANTS 18.104.22.168 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: 26
- Joined: Thu Sep 25, 2008 12:36 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.
Red Gate Software Ltd.
- Posts: 134
- Joined: Thu Aug 17, 2006 3:44 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 2:27 pm
Return to ANTS Performance Profiler 6
Who is online
Users browsing this forum: No registered users and 0 guests