RCMicrocodeStats.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Russ Atkinson (RRA) April 9, 1986 4:55:01 pm PST
This file defines the statistics kept by the software implementations of the RC microcode, as implemented in RCMicrocodeImpl.
RCMicrocodeStats: CEDAR DEFINITIONS = BEGIN
StatsPtr: TYPE = LONG POINTER TO Stats;
Stats: TYPE = RECORD [
createRef: INT ← 0,
# of CREATEREF[nhp]
reclaimedRef: INT ← 0,
# of RECLAIMEDREF[ref] that alter the count
onZCT: INT ← 0,
# of times a ref was placed on the ZCT
assignRef: INT ← 0,
# of ASSIGNREF[rhs, lhs]
assignRefNil: INT ← 0,
# of ASSIGNREF where lhs^ = rhs & rhs = NIL
assignRefEq: INT ← 0,
# of ASSIGNREF where lhs^ = rhs & rhs # NIL
assignRefLeft: INT ← 0,
# of ASSIGNREF where lhs^ # NIL & rhs = NIL
assignRefRight: INT ← 0,
# of ASSIGNREF where lhs^ = NIL & rhs # NIL
assignRefBoth: INT ← 0,
# of ASSIGNREF where lhs^ # NIL & rhs # NIL & lhs^ # rhs
upToOne: INT ← 0,
# of ASSIGNREF where the resulting rhs RC = 1
upToTwo: INT ← 0,
# of ASSIGNREF where the resulting rhs RC = 2
downToZero: INT ← 0,
# of ASSIGNREF where the resulting lhs RC = 0
downToOne: INT ← 0
# of ASSIGNREF where the resulting lhs RC = 1
];
stats: StatsPtr;
The raw data (probably not very useful).
SampleStats: PROC RETURNS [delta: Stats];
Returns the difference in statistics from the last time they were sampled.
END.