HeapSnapshotGraph.fromChunks constructor Null safety
Populates the HeapSnapshotGraph by parsing the events from the
HeapSnapshot
stream.
Implementation
HeapSnapshotGraph.fromChunks(List<ByteData> chunks) {
final reader = _ReadStream(chunks);
// Skip magic header
for (int i = 0; i < 8; ++i) {
reader.readByte();
}
_flags = reader.readUnsigned();
_name = reader.readUtf8();
_shallowSize = reader.readUnsigned();
_capacity = reader.readUnsigned();
_externalSize = reader.readUnsigned();
_populateClasses(reader);
_populateObjects(reader);
_populateExternalProperties(reader);
_populateIdentityHashCodes(reader);
}