logRequestStatistics(samplingHandle: Integer; local: Boolean; remote: Boolean; userNumber: Integer; userText: String);
The
The JADE-supplied library automatically writes the following statistics.
Local request statistics record (type 8)
Remote request statistics record (type 9)
The logRequestStatistics method parameters are listed in the following table.
Parameter | Description |
---|---|
samplingHandle | Identifies the sampling context |
local | Logs statistics of all requests invoked on the local node |
remote | Logs statistics of all requests from the local node to remote nodes |
userNumber | Identifies the sample in the corresponding user library invocations |
userText | In conjunction with the userNumber parameter, identifies the sample |
To enable the logging of the request statistics that you require, set the appropriate Boolean cache parameters to true. The user number and text values specified in the userNumber and userText parameters are written in the corresponding records.
This method does not reset cumulative values.
The following code fragment shows an example of the logRequestStatistics method and its parameters.
node.logRequestStatistics(samplingHandle, true, true, 23, "Before method m1");
For more details, see "Statistics File Format", later in this chapter.