Google is committed to advancing racial equity for Black communities. See how.

Inspect class

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, String name)

Returns a new Inspect object at .inspect backed by a fake VMO intended for unit testing inspect integrations, so that they can run as host tests.
factory

Inspect.named (String name)

Returns a new Inspect object at .inspect If called multiple times with the same name within a process, a unique number will be appended, though any existing file will be overwritten. ...
factory

Properties

hashCodeint

The hash code for this object. ...
read-only, inherited

health → HealthNode

The health Node of this Inspect tree. ...
read-only

rootNode

The root Node of this Inspect tree. ...
read-only

runtimeTypeType

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

toString() String

Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator. ...
inherited

Static Properties

nameToInstanceCountMap<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. ...

onDemand(String name, OnDemandRootFn rootNodeCallback) void

Mounts an Inspect file at .inspect whose contents are dynamically created by rootNodeCallback on each read. ...