/**
* Measurement history.
*/
- history: CircularArray<number>
+ readonly history: CircularArray<number>
}
/**
* @internal
*/
export interface EventLoopUtilizationMeasurementStatistics {
- idle: MeasurementStatistics
- active: MeasurementStatistics
+ readonly idle: MeasurementStatistics
+ readonly active: MeasurementStatistics
utilization: number
}
/**
* Worker id.
*/
- id: number | undefined
+ readonly id: number | undefined
/**
* Started flag.
*/
started: boolean
+ /**
+ * Shared buffer.
+ */
+ readonly sharedBuffer?: Int32Array
}
/**
/**
* Tasks statistics.
*/
- tasks: TaskStatistics
+ readonly tasks: TaskStatistics
/**
* Tasks runtime statistics.
*/
- runTime: MeasurementStatistics
+ readonly runTime: MeasurementStatistics
/**
* Tasks wait time statistics.
*/
- waitTime: MeasurementStatistics
+ readonly waitTime: MeasurementStatistics
/**
* Tasks event loop utilization statistics.
*/
- elu: EventLoopUtilizationMeasurementStatistics
+ readonly elu: EventLoopUtilizationMeasurementStatistics
}
/**
readonly id?: number
readonly threadId?: number
/**
- * Register an event listener.
+ * Registers an event listener.
*
* @param event - The event.
* @param handler - The event handler.
((event: 'online', handler: OnlineHandler<this>) => void) &
((event: 'exit', handler: ExitHandler<this>) => void)
/**
- * Register a listener to the exit event that will only be performed once.
+ * Registers a listener to the exit event that will only be performed once.
*
* @param event - `'exit'`.
* @param handler - The exit handler.
/**
* Worker node worker info.
*/
- info: WorkerInfo
+ readonly info: WorkerInfo
/**
* Worker node worker usage statistics.
*/