Click here to Skip to main content
15,887,854 members
Articles / Desktop Programming / MFC

IE 8 Can Profile JavaScript

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
8 Apr 2009CPOL1 min read 26K   3   7
Being on the software "bleeding edge" is similar to being the "point man" in combat. I generally avoid being the first to adopt new technology until some other poor bastard has led the way…and occasionally paid a price: The price being missed deadlines, ulcers and ruined reputations. No thanks.

Being on the software "bleeding edge" is similar to being the "point man" in combat. I generally avoid being the first to adopt new technology until some other poor soul has led the way…and occasionally paid a price: The price being missed deadlines, ulcers and ruined reputations. No thanks.

However, with Internet Explorer 8, for some inexplicable reason, I jumped right in. And I was pleasantly surprised. One of the nicest features is the new Developer Tools toolbar that comes with IE 8. Previously the Developer Toolbar was an add-on.

On the Developer Tools window there is a new Profiler tab. Since there have been recent performance issues on the Asp.Net forums where I'm a moderator, I thought I'd give it a spin.

  • I clicked Start Profiling.
  • I navigated to the Asp.Net forums website.
  • I waited for the page to finish loading. Having the Profiler running slows things down quite a bit…which is understandable.
  • After the page had finished loading, I clicked Stop Profiling.

It was that easy. The results are below. It appears the getAvatar function is taking a lot of time. If each call to getAvatar results in a database call, and each call results in an image being resized, that could explain why there are performance issues.

 

I hope you find this useful.

Steve Wellens.

This article was originally posted at http://weblogs.asp.net/stevewellens/privaterss.aspx

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
EndWell Software, Inc.
United States United States
I am an independent contractor/consultant working in the Twin Cities area in Minnesota. I work in .Net, Asp.Net, C#, C++, XML, SQL, Windows Forms, HTML, CSS, etc., etc., etc.

Comments and Discussions

 
RantSwearing Pin
NortonTower8-Apr-09 1:19
NortonTower8-Apr-09 1:19 
GeneralRe: Swearing Pin
Steve Wellens8-Apr-09 3:52
Steve Wellens8-Apr-09 3:52 
GeneralRe: Swearing Pin
NortonTower8-Apr-09 4:37
NortonTower8-Apr-09 4:37 
GeneralRe: Swearing [modified] Pin
Steve Wellens8-Apr-09 4:55
Steve Wellens8-Apr-09 4:55 
Hey Sean,

An honest mistake in communication. I saw you were from the UK and assumed the 'Bleeding Edge' phrase was the problem. I'll edit the other term (here in the US it's not on the list of seven banned words).

Steve Wellens

modified on Wednesday, April 8, 2009 11:34 AM

GeneralRe: Swearing Pin
NortonTower8-Apr-09 5:13
NortonTower8-Apr-09 5:13 
GeneralRe: Swearing Pin
Sotaio8-Apr-09 6:19
Sotaio8-Apr-09 6:19 
GeneralRe: Swearing Pin
Steve Wellens8-Apr-09 6:44
Steve Wellens8-Apr-09 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.