Example of Code to Manually Sample Node Statistics

The following is an example of a method that manually samples node statistics.

testManualSamplingFullInterval();
vars
    cust           : Customer;
    samplingHandle : Integer;
begin
    samplingHandle := node.beginSample("filesmpl",
                    "c:\temp\fullInterval%p.txt");
    node.beginIndividualRequestsLogging(samplingHandle, false,
                    true, true, true, false, 557, "fullInterval");
    foreach cust in Customer.instances do
        write cust.name;
    endforeach;
    node.endIndividualRequestsLogging(samplingHandle, 557, "fullInterval");
    node.endSample(samplingHandle);
end;