Profiling Prism Modules

Code profiling for .NET Developers

Profiling Prism Modules

Postby dselly » Thu Dec 16, 2010 4:03 pm

I'm using .NET Framework 3.5, WPF, and Prism (formerly Composite Application Guidance).

I'm seeing instrumentation of all assemblies my shell.exe has direct references to, but Prism uses dependency injection, and so many modules are loaded dynamically at runtime.

No information from these assemblies is being captured. I've copied them from the Modules subdirectory to the same directory as my exe in hope that probing by the assembly loader would bump into them there, but that didn't work.

Is there some way I can get the Profiler to calibrate these late-bound, dynamically loaded assemblies as well?

Posts: 2
Joined: Thu Dec 16, 2010 3:56 pm

Postby Brian Donahue » Thu Dec 16, 2010 6:41 pm

Hi Dominic,

The profiler will pick up all IL code executed by the runtime, regardless of whether or not it's late-bound or explicitly referenced. Is the problem that you do not get the source view? If so, it's probably because you do not have the debugging information. Third-party vendors almost never ship their assemblies with the PDBs. If you show all methods and don't hide insignificant methods and show all threads then you should see results for the third-party code in the all methods grid and/or tree view.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 10:48 am

Postby dselly » Fri Dec 17, 2010 4:18 pm


Thanks for your reply. I have the source code, but the PDBs were not present in the Modules directory.

Works like a charm. Great tool. Thank you.

Posts: 2
Joined: Thu Dec 16, 2010 3:56 pm

Return to ANTS Performance Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests