How to enable profiling website in Visual Studio?

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

How to enable profiling website in Visual Studio?

Postby bpaetzke » Mon Sep 21, 2009 9:57 pm

The two "profile" buttons are disabled in the ANTS5 toolbar of my web solution in Visual Studio 2008. How can I enable them?

Let me spell out what the buttons are--just in case there's question. When I hover over the two disabled buttons they say:
* "Profile the memory of this project in ANTS Memory Profiler 5"
* "Profile the performance of this project in ANTS Profiler 5"

Also, in the menu bar, the ANTS5 menu has these items disabled:
* Profile Performance
* Profile Method-level Performance
* Profile Memory

FYI, the rest of the items in the menu bar are enabled:
* Launch ANTS5 Performance Profiler
* Launch ANTS5 Memory Profiler
* Performance Profiler Help
* Memory Profiler Help
* About ANTS5 Profiler
bpaetzke
 
Posts: 3
Joined: Mon Sep 21, 2009 9:34 pm
Location: Los Angeles, CA

A workaround for this

Postby bpaetzke » Tue Sep 22, 2009 10:19 pm

I found a workaround now.

The workaround was to:
1) create a new solution
2) add my existing web project and class library projects
3) set the web project as the startup project
4) then profile

Originally, I did step 4 before 3. And that resulted in disabling the profiling buttons. But if you know a fix for this w/o having to recreate the solution, let me know.
bpaetzke
 
Posts: 3
Joined: Mon Sep 21, 2009 9:34 pm
Location: Los Angeles, CA

Postby Brian Donahue » Wed Sep 23, 2009 10:56 am

Hi Bill,

The ANTS Profiler add-in is a bit finicky when it comes to web projects. In most cases, it disables the menu items when the projects does not produce executable output, but it also checks the first project in the solution rather than scoping to the currently-selected project when there is more than one project in the solution.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests