ANTS Performance Profiler 7

Enabling line-level timings for SecurityTransparent code

ANTS Performance Profiler will not show line-level profiling results for methods from any module marked as SecurityTransparent (or, in .NET 3.5 and earlier, marked as partially trusted). ANTS Performance Profiler shows method-level timings for these methods, even if you have selected a line-level profiling mode.

To enable line-level timings for SecurityTransparent or partially trusted modules, modify the assembly and then profile the application again:

  1. Remove the AllowPartiallyTrustedCallers attribute from the profiled assembly and from any of its dependencies.
  2. Increase the code's trust level:
  3. Rebuild and profile the application again.

Didn't find what you were looking for?