MemoryUsage class

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

Inheritance

Constructors

MemoryUsage({@required int externalUsage, @required int heapCapacity, @required 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 or native extensions. This external memory applies GC pressure, but is separate from heapUsage and heapCapacity.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
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 / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
Every response returned by the VM Service has the type property. This allows the client distinguish between different kinds of responses.
read / write, inherited

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