ANTS Performance Profiler Latest version: 6.0

Knowledge Base

Methods in (ASCX) web controls may not appear

Category: Troubleshooting & error messages
Date: 17 Jun 2009
Product: ANTS Performance Profiler
Versions: 2-4

When profiling a web application that loads controls using Controls.LoadControl() in the ASPX code, the methods inside the control may not appear in the profiling results when selecting the "profile only methods with source code" option.

ASP .NET has a class called "FastObjectFactory" that may compile your ASCX code and cache the assembly, eliminating the references to your source code, causing the "profile only methods that contain source code" option to filter the ASCX method calls from the results.

The workaround is to profile using the "profile all methods" setting or use a custom filter to remove the Framework methods from the results.

ANTS Performance Profiler forum