Profiling an outlook add-in

Code profiling for .NET Developers

Moderators: StephenC, Alex.Davies, AndrewH

Profiling an outlook add-in

Postby jtalbot » Thu Jul 02, 2009 1:46 am

Hi,
Is there a way to profile an Outlook 2007 Add-in (the add-in itself is written in .net)?
If I choose the application type as ".net executable", then no data gets collected. I don't really see any other application type that would be suitable.
jtalbot
 
Posts: 6
Joined: Sat Aug 09, 2008 3:33 am

Postby jtalbot » Thu Jul 02, 2009 2:24 am

This post says that it should work, but the method described doesn't work for me.

http://www.red-gate.com/MessageBoard/vi ... php?t=6354

The profiler just keeps saying in the status bar "Launching Outlook.exe". I tried with all 4 profiling methods, and it's always the same result.
jtalbot
 
Posts: 6
Joined: Sat Aug 09, 2008 3:33 am

Postby jtalbot » Thu Jul 02, 2009 2:31 am

Aah, interesting: the memory profiler works, but not the performance profiler.

Note that I have to use the "launch ANTS x Profiler" from the visual studio menu; the "profile performance" and "profile memory" menu items are always disabled for the solution containing my outlook add-in. I'm using the trial version, and it was the same when I was usability testing with version 4.x.
jtalbot
 
Posts: 6
Joined: Sat Aug 09, 2008 3:33 am

Postby jtalbot » Sun Jul 12, 2009 12:44 pm

No reply -- does this just work for everyone else but me?
jtalbot
 
Posts: 6
Joined: Sat Aug 09, 2008 3:33 am

Postby Brian Donahue » Mon Jul 13, 2009 5:31 pm

Hello,

You typically profile add-ins by profiling the process that launches them, in this case outlook.exe. If the status stays at "waiting", that's meant to indicate that the process being profiled did not load the .net runtime and may be all unmanaged code.

I believe that the ANTS Profiler add-in only works with project types that produce executable output -- I don't believe it has the intelligence to go through the project's debugging properties and work out what process is meant to load the assembly.
Brian Donahue
 
Posts: 6668
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 5

Who is online

Users browsing this forum: No registered users and 1 guest