To be viewed with Performance Explorer, each measure requires at least these three project attributes:
As specified in the project attributes, the project exports two measures that can be viewed in Performance Explorer in real-time.
Look for MonitorInc and MonitorIncFloat in the TMon transaction. This is where the last snapshot is handed over to Performance Explorer.
use "bdlMonitor.bdh"
const
nMeasure1 := 1;
nMeasure2 := 2;
dclrand
rRand : RndExpN (1..10000: 100.000000);
rRandf : RndExpF (5.500000);
var
fScale : float;
dcluser
user
VMon
transactions
TInit : begin;
TMon : 1;
TEnd : end;
dcltrans
transaction TInit
begin
fScale := AttributeGetDouble("scale");
end TInit;
transaction TMon
var
n : number;
f : float;
begin
n := rRand;
MonitorInc(1, n);
f := rRandf;
f := f * fScale;
MonitorIncFloat(2, f);
end TMon;