Inspect class Null safety

Inspect exposes a structured tree of internal component state.

The Inspect object maintains a hierarchy of Node objects whose data are exposed for reading by specialized tools such as iquery.

The classes exposed by this library do not support reading.

Constructors

Inspect()
Returns a singleton Inspect instance at root.inspect
factory
Inspect.forTesting(FakeVmoHolder vmo)
Returns a new Inspect object at root.inspect backed by a fake VMO intended for unit testing inspect integrations, so that they can run as host tests.
factory

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
health → HealthNode
The health Node of this Inspect tree. [...]
read-only
root Node?
The root Node of this Inspect tree. [...]
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDemand(String name, OnDemandRootFn rootNodeCallback) → void
Mounts an Inspect file at .inspect whose contents are dynamically created by rootNodeCallback on each read. [...]
serve(Outgoing outgoing) → void
Attaches the inspect to the outgoing diagnostics/debug dir.
toString() → String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

nameToInstanceCount ↔ Map<String, int>
Maps an inspect instance name to the number of instantiations of that inspector. Used to deduplicate requests for similarly named inspectors.
read / write

Static Methods

configure({int? vmoSizeBytes}) → void
Optionally configure global settings for inspection. [...]
nextInstanceWithName(String name) → String