Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #60: Did you know… How to Profile an ASP.Net site?

1. Create a asp.net web application in Visual Studio Team Edition For Developers

2. Write some code inside Page_Load function

protected void Page_Load(objectsender, EventArgs e)
{
    int sum = 0;
    for(int i = 0; i < 2000000; i++)
    {
        sum += i;
    }
    Response.Write(sum);
}

3. Launch performance wizard

image

4. Select the application (default) and select next

image

5. Choose Sampling, and select next

image

6. Click Finish

7. Launch with Profiling

image

8. Perform actions on IE and close it when it’s done

9. Performance report Summary is going to be displayed

image

 

For complete detail reading, please refer to http://msdn.microsoft.com/en-us/library/bb385749.aspx (

Getting Started with Profiling Tools)

 

Xinyang Qiu

SDETII | Visual Web Developer

Posted: Thursday, April 30, 2009 10:33 AM by WebDevTools

Comments

What's New said:

1. Create a asp.net web application in Visual Studio Team Edition For Developers 2. Write some code inside

# April 30, 2009 7:14 PM

Rob said:

Is there a way to something similar to this without team system?

# May 1, 2009 4:10 AM

DarthSwian said:

Should be "Did you know... How to PROFILE and ASP.Net site?" - Sorry, grammar's not that important but the headline should be correct.

# May 1, 2009 8:22 AM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# May 1, 2009 10:25 AM

Bill said:

Should be "Did you know... How to Profile AN ASP.Net site?" - grammar is important

# May 1, 2009 10:54 AM

Jason N. Gaylord's Blog said:

If you are looking to follow this series, be sure to subscribe to my RSS feed at http://feeds.jasongaylord

# May 1, 2009 4:55 PM

ASPInsiders said:

If you are looking to follow this series, be sure to subscribe to my RSS feed at http://feeds.jasongaylord.com/JasonNGaylord

# May 1, 2009 6:06 PM

Thanigainathan said:

Hi,

Very nice article. Does this include's both client side and server performance ?

Thanks,

Thani

# May 4, 2009 2:34 AM

Visual Studio Hacks said:

My latest in a series of the weekly, or more often, summary of interesting links I come across related to Visual Studio. New on Visual Studio Gallery: Quick Open File for Visual Studio 2008 Tomasz Modelski explained how to pre-generate lazy loading proxies

# May 5, 2009 10:31 AM

xinqiu said:

Title changed.  Thanks, DarthSwian and Bill.

# May 13, 2009 2:46 PM

xinqiu said:

Rob, looks like only a few editions have profiling functionality in vs2008.  Check out http://msdn.microsoft.com/en-us/library/dd164415.aspx

# May 13, 2009 2:53 PM

xinqiu said:

Thanigainathan, only server side is included in VS2008 profiling.

# May 13, 2009 2:53 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker