Live-level profiling is not showing line-level results

I just upgraded to Ants 4 after using ants 3 for months. In Ants 4, the Line-level profiling does not seem to be reporting at the line-level, but is instead reporting the total method time at the line for the method's open brace line, similar to when I choose method level profiling.

I am profiling the NUnit GUI runner (2.4.8) that is running a test in my assembly. My assemblies are compiled against .NET 3.5. Ants 3 does not have a problem profiling this exact setup at the line level.

Comments

  • This unfortunately seems to be a problem with ANTS Profiler 4. It has to do with the way NUnit shadow copies the assemblies, which means we have issues finding the pdbs. We'll be looking into it for an upcoming patch release.

    For the time being, an easy workaround is to turn off 'Enable shadow copying' in Tools->Options in the NUnit GUI runner UI. Then the pdbs stay-put, and we can line-level profile fine.
    Jason Crease
    Red Gate Software
Sign In or Register to comment.