CockpitPerformancePlugin class abstract
A development-only instrumentation plugin definition.
The definition is safe to register and reuse. Mutable subscriptions, counters, and other capture state belong to the CockpitPerformancePluginRun returned by open, so repeated or concurrent captures cannot share state.
Constructors
- CockpitPerformancePlugin({required String id, String? version, CockpitPerformancePluginOptions options = const CockpitPerformancePluginOptions()})
- CockpitPerformancePlugin.callbacks({required String id, required CockpitPerformancePluginSetup setup, CockpitPerformancePluginCleanup? cleanup, String? version, CockpitPerformancePluginOptions options = const CockpitPerformancePluginOptions()})
-
Creates a callback-backed plugin for small instrumentation hooks.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- options → CockpitPerformancePluginOptions
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
CockpitPerformancePluginContext context) → CockpitPerformancePluginRun - Creates the state and lifecycle owner for one active capture.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited