ANTS Performance Profiler 11

Integrated decompilation

Integrated decompilation is only available in ANTS Performance Profiler Professional edition.

You cannot decompile methods if you're profiling a .NET 1.1 application.

Integrated decompilation is powered by the .NET Reflector engine, but you don't need  .NET Reflector installed to use integrated decompilation.

You can decompile methods without source directly from the call tree. Decompiling a method generates line-level code from any .NET assembly. This allows you to identify the causes of performance problems in previously inaccessible code, for example, third-party components or legacy assemblies called by your application.

Decompiling a method from an assembly with no PDB


  1. In Display Options, select All methods  to view methods without source:
  2. In the call tree, select a method without source code (shown in the call tree in plain, unbolded text):
  3. Click   to generate source code for the selected method, or on the View menu, click Show Source View.
    ANTS Performance Profiler now decompiles the selected method, and displays automatically-generated source code for the selected method in the source-code pane. 

Without a PDB file, line-level timings are unavailable and only method-level timings are shown.

For more information on navigating your decompiled source, see Source code.


Decompiling a method from an assembly with a PDB

  1. In the call tree, select a method from an assembly for which you have a PDB but no source code (shown in the call tree in plain, unbolded text).
  2. Click   to generate source code for the entire assembly.
    ANTS Performance Profiler will decompile the selected assembly or method, and display automatically-generated source code for the selected method in the source-code pane. If you chose Line-level and method-level timings; only methods with source or Line-level and method-level timings; all methods inc. framework profiling mode, ANTS Performance Profiler will match these timings to the decompiled code, though the timings may be inexact.
    For more information on navigating your decompiled source, see Source code.

Methods will also display without source if you have the assembly's source code but ANTS Performance Profiler cannot automatically locate it. To manually specify a path to the source code for an assembly, click

Decompiling obfuscated code

Some obfuscated code cannot be decompiled, or can be decompiled only partially. Partially obfuscated code, when decompiled, may display mangled method names and absent lines of code.

If an obfuscated method cannot be decompiled, the method's contents are replaced with the comment "This code is obfuscated and can not be translated" in the source code pane.

Saving profiling results

When saving profiling results, any decompiled code generated during the profiling session is not saved. To view source for methods from third-party assemblies on opening a saved session, follow the decompilation steps above.


Didn't find what you were looking for?