From: Jérôme Benoit Date: Thu, 8 Jun 2023 17:16:37 +0000 (+0200) Subject: refactor: measure -> measurement X-Git-Tag: v2.6.0~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cd4d348a1b1b8f3850385957f62cb8e37f19d9b8;p=poolifier.git refactor: measure -> measurement Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/worker.ts b/src/pools/worker.ts index 4d935a11..ba9393ab 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -57,25 +57,25 @@ export interface Task { } /** - * Measure statistics. + * Measurement statistics. * * @internal */ -export interface MeasureStatistics { +export interface MeasurementStatistics { /** - * Measure aggregation. + * Measurement aggregation. */ aggregation: number /** - * Measure average. + * Measurement average. */ average: number /** - * Measure median. + * Measurement median. */ median: number /** - * Measure history. + * Measurement history. */ history: CircularArray } @@ -85,7 +85,6 @@ export interface MeasureStatistics { * * @internal */ - export interface TaskStatistics { /** * Number of tasks executed. @@ -118,11 +117,11 @@ export interface WorkerUsage { /** * Tasks runtime statistics. */ - runTime: MeasureStatistics + runTime: MeasurementStatistics /** * Tasks wait time statistics. */ - waitTime: MeasureStatistics + waitTime: MeasurementStatistics /** * Event loop utilization. */