getStatistics(stats: JadeDynamicObject input);
The getStatistics method of the JadeBytes class populates a dynamic object specified by the stats input parameter with structural statistics. The following example shows the use of the getStatistics method.
vars
bytes : JadeBytes;
stats : JadeDynamicObject;
begin
create bytes;
bytes.allocate(1000000);
bytes.atPut(500000, "JADE".Byte);
create stats;
bytes.getStatistics(stats);
write stats.display;
epilog
delete bytes;
delete stats;
end;
The following output is written to the Jade Interpreter Output Viewer.
---JStatsBytes(104)--- embeddedVector = true entrySize = 1 length = 1000000 segmentSize = 262144 virtualSegments = 4 committedSegments = 2 tailSegmentLength = 237856 tailSegmentSize = 262185