IsolateSlots class

How many isolates the Dart VM runs at the same time. Not exported.

All isolates of an app share the young space of the VM. The VM gives out young space MB / 2 run slots (16 MB = 8 slots by default). An isolate with no slot waits, so more isolates than slots do not use more CPU cores.

Properties

hashCode → int
The hash code for this object.
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

Static Properties

available → int
The slots of this process: from DART_VM_OPTIONS and the VM arguments of the command line.
no setter

Static Methods

fromOptions(String options) → int
The slots for the VM options text. The last flag wins.
megabytesFor(int isolates) → int
The young space size in MB that gives isolates slots.

Constants

defaultMegabytes → const int
The size the VM uses when the flag is not set.
flag → const String
The VM flag that sets the size of the young space, in MB.