TStatsBuffer.OnComputeStatsEvent Event

event TOnComputeStats OnComputeStatsEvent

To compute custom statistics, place the computation inside this event and assign the result to the result variable.