MemoryUsage class
A MemoryUsage
object provides heap usage information for a specific
isolate at a given point in time.
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.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
getter/setter pair
- heapUsage ↔ int?
-
The current heap memory usage in bytes. Heap usage is always less than or
equal to the heap capacity.
getter/setter pair
-
json
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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