logRequestStatistics

logRequestStatistics(samplingHandle: Integer;
                     local:          Boolean;
                     remote:         Boolean;
                     userNumber:     Integer;
                     userText:       String);

The logRequestStatistics method of the System class specifies the request statistics that are logged for all processes in each of the nodes in the sample definition group, by invoking the NodeSampleRequestStatisticsCallBack entry point in the user library.

The JADE-supplied library automatically writes the following statistics.

The logRequestStatistics method parameters are listed in the following table.

Parameter Description
samplingHandle Identifies the sampling context returned by the beginSampleGroupDefinition method when sampling started
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.

The following code fragment shows an example of the logRequestStatistics method and its parameters.

system.logRequestStatistics(samplingHandle, true, true, 23, "Before                             method m1");

For details, see "Statistics File Format", in Chapter 4 of the JADE Object Manager Guide.