AllocationEntry class

A single class's allocation contribution during heap growth.

Produced from AllocationProfile.members (ClassHeapStats) when the memory pressure detector flags sustained heap growth.

Constructors

AllocationEntry({required String className, required String libraryUri, required int instancesDelta, required int bytesDelta, required double percentage})
const
AllocationEntry.fromJson(Map<String, dynamic> json)
factory

Properties

bytesDelta → int
Bytes those live instances held when the profile was read.
final
className → String
Class name (e.g. "MyWidget", "_GrowableList").
final
displayBytes → String
Display-friendly byte size.
no setter
hashCode → int
The hash code for this object.
no setterinherited
instancesDelta → int
Live instances of this class when the profile was read.
final
libraryUri → String
Library URI (e.g. "package:my_app/models/item.dart").
final
percentage → double
Percentage of total allocation bytes, 0.0–100.0.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited