Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instrumented ¶
type Instrumented struct {
// contains filtered or unexported fields
}
Instrumented wraps any runtime scheduler and records scheduling latency.
func NewInstrumented ¶
func NewInstrumented(parseNext Scheduler) *Instrumented
NewInstrumented wraps next. A nil next is allowed and executes callbacks inline.
func (*Instrumented) DevtoolsSection ¶
func (parseS *Instrumented) DevtoolsSection() devtools.ExtensionSection
DevtoolsSection returns a companion devtools section for scheduler telemetry.
func (*Instrumented) RequestIdleCallback ¶
func (parseS *Instrumented) RequestIdleCallback(parseCallback func(Deadline))
func (*Instrumented) SetTimeout ¶
func (parseS *Instrumented) SetTimeout(parseCallback func(), parseDelay int)
func (*Instrumented) Snapshot ¶
func (parseS *Instrumented) Snapshot() Metrics
Snapshot returns the current scheduler metrics.
Click to show internal directories.
Click to hide internal directories.