Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Tools
Developer Tools
 Developer Tools: Script Profiler Ov...
Developer Tools: Script Profiler Overview
New for Windows Internet Explorer 8
Note: This documentation is preliminary and is subject to change.

The Internet Explorer 8 Developer Tools provide a built-in script profiler that enables you to profile the Microsoft JScript code running in Internet Explorer. This document outlines the high-level features of the script Profiler. For an introduction to the other features and the UI of the Internet Explorer 8 Developer Tools, see Discovering the Internet Explorer 8 Developer Tools and Internet Explorer 8 Developer Tools GUI Reference.

Introduction

Script profiling enables you to improve the performance of a Web site by identifying and fixing performance-related issues in JScript code. To open Developer Tools, press F12; alternatively, on the Tools menu bar of Internet Explorer, click the Developer Tools button.

Starting and Stopping Profiling

In the Profiler tool, start a script profiling session by clicking the Start Profiling button. This will put the script engines into profiling mode and change the text of the button to Stop Profiling. Perform the scenario you want to profile on your Web page. To stop the profiling session, click the Stop Profiling button. The tool will automatically display the profile report for the profiling session just completed.
The following image shows the main user interface of the Profiler.
The Developer Tools Profiler
Figure 1: The Developer Tools Profiler.

Viewing Profile Reports

The profile report can be viewed with either the Functions or the Call Tree view, which can be selected from the Current View drop-down list. The Functions view lists all the functions used, while the Call Tree view provides the hierarchy of the calls. In both views, various profile data is presented in different columns in the Primary Content pane. To add or remove columns, right-click anywhere on the Primary Content pane, and from the shortcut menu select Add / Remove Columns. To sort the report on a particular column, click the column header; alternatively, on the shortcut menu point to the Sort By submenu, and then click the column name. To rearrange columns, drag the column headers.

Exporting Profile Data

To export the profile data of the current report locally to a disk in CSV format, click the Export Data button The Profiler's Export Data button., then in the Save As dialog box type the name of the file, and then click Save.

Using Multiple Profile Session

To start a new profiling session, click the Start Profiling button again. To stop the current profiling session and to display the profile report for the new session, click the Stop Profiling button. The profile reports for older sessions are available in the Reports drop-down list box. To view the report for previous profiled sessions, select a profile report from the drop-down list box.

Remarks

To see the URL and the line number information, you must enable script debugging in Internet Explorer. On the Tools menu, select Internet Options and then, in the Advanced tab, clear Disable script debugging (Internet Explorer).

Related Topics

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker