dart:developer library

Interact with developer tools such as the debugger and inspector.

Interact with developer tools such as the debugger and inspector.

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 metric cannot contain the slash ('/') character.
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 were hit at the following statement.
inspect(object) → dynamic
Send a reference to object to any attached debuggers.
getCurrentTag() → UserTag
Returns the current UserTag for the isolate.