NativeHeapUsage class

C heap accounting: what the allocator holds vs what is actually live.

A growing arenaBytes with a flat inUseBytes is allocator residency or fragmentation, not a leak. All fields are 0 where the platform allocator has no equivalent (currently: everything but glibc ≥ 2.33).

Constructors

NativeHeapUsage({required int arenaBytes, required int inUseBytes, required int freeBytes, required int mmappedBytes})
const

Properties

arenaBytes int
Total bytes the allocator obtained from the OS for its main arena.
final
freeBytes int
Bytes free inside the arena — held by the process, unused by the program.
final
hashCode int
The hash code for this object.
no setterinherited
inUseBytes int
Bytes handed out and not yet freed.
final
isSupported bool
no setter
mmappedBytes int
Bytes in blocks the allocator mapped separately (returned to the OS on free, so they do not accumulate).
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, int>
toString() String
A string representation of this object.
override

Operators

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