WindDebugRegistry class
Process-global registry for the single active WindDebugResolver
and the single active WindPerfResolver.
Wind installs its concrete resolvers at app boot (gated by
!kReleaseMode, so debug and profile builds); debug-tooling consumers look up the current
resolver via current / currentPerf. Never registered in
release builds.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- current → WindDebugResolver?
-
Returns the registered resolver or
nullwhen wind has not installed one (release build, orWind.installDebugResolver()was never called).no setter - currentPerf → WindPerfResolver?
-
Returns the registered perf resolver or
nullwhen wind has not installed one (release build, or the perf resolver was never registered).no setter
Static Methods
-
register(
WindDebugResolver resolver) → void - Registers the resolver. Idempotent; the most recent call wins.
-
registerForTesting(
WindDebugResolver resolver) → void - Test-only override. Reassigns the registered resolver to a test fake. Distinct from register to make test-only intent visible.
-
registerPerf(
WindPerfResolver resolver) → void - Registers the perf resolver. Idempotent; the most recent call wins. Mirrors register but occupies a distinct slot so registering one never overwrites the other.
-
registerPerfForTesting(
WindPerfResolver resolver) → void - Test-only override for the perf slot. The sibling of registerForTesting, and it exists for the same reason: registerPerf is documented as wind's canonical install path, so a consumer's test installing a fake through it reads as production wiring at the call site.
-
resetForTesting(
) → void - Test-only reset. Drops both the registered resolver and the registered perf resolver.