Expand all

mw.editcheck.EditCheckPerformance

Constructor

new mw.editcheck.EditCheckPerformance(controller) #

Performance tracking handler for Edit Check.

Parameters:

Name Type Description
controller

Edit Check controller instance

Source:
Performance tracking handler for Edit Check.

Methods

onAfterActionsGeneratedAsync(checkName, run) #

Listener for when a check listener's async work completes Records total duration for the check's async and sync action generations

Parameters:

Name Type Description
checkName string
run Object

token to use to correlate lifecycle events

Source:

Listener for when a check listener's async work completes Records total duration for the check's async and sync action generations

onAfterActionsGeneratedSync(checkName, run) #

Listener for when a check listener's sync work completes

Parameters:

Name Type Description
checkName string
run Object

token to use to correlate lifecycle events

Source:
Listener for when a check listener's sync work completes

onBeforeActionsGenerated(checkName, listener, includeSuggestions, run) #

Handler for when a check's listener is invoked

Tracks the start time and if this is this the first time we've observed this check/listener pair.

Parameters:

Name Type Description
checkName string
listener string
includeSuggestions boolean
run Object

token to use to correlate lifecycle events (in case the same check listener is invoked concurrently)

Source:

Handler for when a check's listener is invoked

Tracks the start time and if this is this the first time we've observed this check/listener pair.

onInput() #

Collect a typing lag sample (time from now until next paint)

Source:
Collect a typing lag sample (time from now until next paint)

recordActionStats(asyncMs, syncMs, checkName, start, firstRun, listener) #

Store metrics for one instance of actions being generated for a check and send them off (up to a limit) if this session has been selected for sampling

Parameters:

Name Type Description
asyncMs number
syncMs number
checkName string
start number
firstRun boolean
listener string
Source:

Store metrics for one instance of actions being generated for a check and send them off (up to a limit) if this session has been selected for sampling

recordTypingLagSummary() #

Compute aggregate typing lag stats from the raw samples and send them off as metrics

Source:
Compute aggregate typing lag stats from the raw samples and send them off as metrics

trackTiming(topic, duration, labels) #

Send metrics through statsv service

Parameters:

Name Type Description
topic string

Event name

duration number

in ms

labels Object

Optional labels to be sent with metric

Source:
Send metrics through statsv service