IHTMLMSPerformance::mark Method

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Sets a performance mark that is designed to help evaulate the performance of a webpage.

Syntax

HRESULT mark(
    BSTR markName
);

Parameters

  • markName
    [in] The desired name for the performance mark.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

For webpages displayed in Internet Explorer 9 mode, Internet Explorer defines a series of built-in performances marks that are designed to help track the performance of a webpage.

The fullyLoaded performance mark is a predefined performance mark that is not recorded unless you define it with the IHTMLMSPerformance::mark method. This is the only case where performance remarks that are defined by the mark method can replace predefined performance remarks. By defining fullyLoaded with the IHTMLMSPerformance::mark method, the webpage developer can define the specific point at which the webpage should be considered fully loaded. For more information, see the IHTMLMSPerformanceTimingMeasures::fullyLoaded property.

For a list of predefined performance marks and the order in the order in which they are placed, see the IHTMLMSPerformanceTiming interface.

See Also

MSPerformanceTimingMeasures, IHTMLMSPerformanceTimingMeasures