Constructor
new mw.editcheck.EditCheckPerformance(controller)
#
Performance tracking handler for Edit Check.
Parameters:
| Name | Type | Description |
|---|---|---|
controller |
Edit Check controller instance |
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 |
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 |
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) |
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)
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 |
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