Allocation class final
Represents a recorded native memory allocation.
An Allocation instance stores metadata describing a single allocation event, including:
Constructors
- Allocation({required int address, required int size, required String stack, required DateTime timestamp, required String type})
-
Creates an immutable allocation record.
const
- Allocation.fromJson(String json)
-
Constructs an Allocation from a JSON string.
factory
Properties
- address → int
-
Memory address of the allocation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Size of the allocation in bytes.
final
- stack → String
-
Stack trace captured at allocation time.
final
- timestamp → DateTime
-
Timestamp indicating when the allocation occurred.
final
- type → String
-
Type of the allocation, such as
Uint8,GUID, etc.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Serializes this allocation record into JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited