MemoryUsage class Null safety

A MemoryUsage object provides heap usage information for a specific isolate at a given point in time.

Inheritance

Constructors

MemoryUsage({int? externalUsage, int? heapCapacity, int? heapUsage})

Properties

externalUsage int?
The amount of non-Dart memory that is retained by Dart objects. For example, memory associated with Dart objects through APIs such as Dart_NewFinalizableHandle, Dart_NewWeakPersistentHandle and Dart_NewExternalTypedData. This usage is only as accurate as the values supplied to these APIs from the VM embedder. This external memory applies GC pressure, but is separate from heapUsage and heapCapacity.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
heapCapacity int?
The total capacity of the heap in bytes. This is the amount of memory used by the Dart heap from the perspective of the operating system.
read / write
heapUsage int?
The current heap memory usage in bytes. Heap usage is always less than or equal to the heap capacity.
read / write
json Map<String, dynamic>?
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type String
read-onlyoverride

Methods

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

Operators

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

Static Methods

parse(Map<String, dynamic>? json) MemoryUsage?
override