WebPageStatToTsd Function

Action

Adds detailed timers for the last page to the time series data.

Adds following timers to the “Timer” section:

  • <timername> - Connect

  • <timername> - DNS

  • <timername> - Recv

  • <timername> - Send

  • <timername> - ServerBusy

  • <timername> - SSL Handshake

The nOption parameter specifies which portion of the page should be measured. To execute this function for every page level call with a provided timername use the WebSetOption function.

Include file

WebAPI.bdh

Syntax

WebPageStatToTsd( in sTimer  : string,
                  in nSource : number ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sTimer Specifies the prefix, used to compose the complete timer names.
nSource

Specifies for which part of the page should be measured. This parameter must be one of the following values:

STATFLAG_HtmlDoc
Measures all HTML documents.
STATFLAG_OtherDoc
Measures all types of documents except HTML documents.
STATFLAG_RootDoc
Measures only the first document.
STATFLAG_All
Measures all documents.

Example

dcltrans
  transaction TMain
  begin
    WebPageUrl("http://standardhost/");
    WebPageStatToTsd("Homepage", STATFLAG_All);
    WebPageLink("click here");
    WebPageLink("again");
    WebPageStatToTsd("Project view", STATFLAG_HtmlDoc );
  end TMain;