Status: Unstable
The dart:developer library is unstable and its API might change slightly
as a result of developer feedback. This library is platform dependent and
therefore it has implementations for both dart2js and the Dart VM. Both are
under development and may not support all operations yet.
Classes
-
UserTag
-
A UserTag can be used to group samples in the Observatory profiler.
-
Metric
-
Abstract Metric class. Metric names must be unique, are hierarchical,
and use periods as separators. For example, 'a.b.c'. Uniqueness is only
enforced when a Metric is registered. The name of a metr...
-
Gauge
-
A measured value with a min and max. Initial value is min. Value will
be clamped to the interval [min, max].
-
Counter
-
A changing value. Initial value is 0.0.
-
Metrics
-
Functions
-
debugger
( {bool when: true, String msg} )
→
bool
-
If when is true, stop the program as if a breakpoint where hit at the
following statement. Returns the value of when. Some debuggers may
display msg.
NOTE: When invoked, the isolate will not ret...
-
inspect
( object )
→
dynamic
-
Send a reference to object to any attached debuggers so they may open an
inspector on the object. Returns the argument.
-
getCurrentTag
( )
→
UserTag
-
Returns the current UserTag for the isolate.