DartPerformanceMode enum

Various performance modes for tuning the Dart VM's GC performance.

For the editor of this enum, please keep the order in sync with Dart_PerformanceMode in dart_api.h.

Inheritance

Values

balanced → const DartPerformanceMode

This is the default mode that the Dart VM is in.

latency → const DartPerformanceMode

Optimize for low latency, at the expense of throughput and memory overhead by performing work in smaller batches (requiring more overhead) or by delaying work (requiring more memory). An embedder should not remain in this mode indefinitely.

throughput → const DartPerformanceMode

Optimize for high throughput, at the expense of latency and memory overhead by performing work in larger batches with more intervening growth.

memory → const DartPerformanceMode

Optimize for low memory, at the expensive of throughput and latency by more frequently performing work.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<DartPerformanceMode>
A constant List of the values in this enum, in order of their declaration.