Returns information about a node (specified by the node ID) that is returned by a previous WebPageStatXXX function call.
To generally enable extended page statistics functionality, call WebSetOption with an option of WEB_OPT_DETAILED_PAGE_STAT (for a detailed description of the various values see WebSetOption).
WebAPI.bdh
WebPageStatGetNodeData( in nOption : number, out fResult : float, in nNode : number optional ): boolean;
true if the information is retrieved successfully
false otherwise
Parameter | Description |
---|---|
nOption |
Specify one of the following values:
|
fResult | Retrieves the result of the specified value. |
nNode | Specify the node ID of the node for which information is to be returned (possibly returned by a previous WebPageStatXXX function). Provide a value of PAGE_STAT_Calculated if data of the most recent calculated node should be returned (WebPageStatCalcSummaryNode). When this parameter is omitted, the most recently returned or calculated node is used. |
dcltrans transaction TInit begin WebSetOption(WEB_OPT_DETAILED_PAGE_STAT, PAGE_STAT_FLAG_AllLoadedDocs); end TInit; transaction TWeb var nNode : number; nNodes : number; fValue : float; begin WebPageUrl("http://lab3/"); nNode := WebPageStatGetRootNode(); if nNode > 0 then WebPageStatGetNodeData(STATFLAG_TimerServerBusy, fValue); print("ServerBusyTime [s]: " + string(fValue)); nNodes := WebPageStatCalcSummaryNode(null, "image/*", PAGE_STAT_MATCH_WildcardNoCase); if nNodes > 0 then WebPageStatGetNodeData(STATFLAG_BytesSent, fValue, PAGE_STAT_Calculated); print("Bytes sent for images: " + string(fValue)); end; end; end TWeb;