IsolateLoads class final

Every isolate the application knows about, with its load: the bean isolateLoads, which a debug widget and the actuator's isolates endpoint read.

It asks each IsolateLoadSource bean, in order; loads of one name are one row (IsolateLoad.merge). An isolate the application starts by itself (Isolate.run, compute) is not seen by any source (a compiled program cannot list its isolates); track shows it while it runs:

final report = await loads.track('report', Isolate.run(buildReport));

Constructors

IsolateLoads(List<IsolateLoadSource> sources)
The loads of sources.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sources → List<IsolateLoadSource>
The sources, asked in this order.
final

Methods

all() → List<IsolateLoad>
The loads now, the sources' first and then what is tracked; one row per name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
track<T>(String name, Future<T> work) → Future<T>
Shows an isolate named name as working until work completes, and returns work. For isolates the application starts itself.

Operators

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