From cd4d348a1b1b8f3850385957f62cb8e37f19d9b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 8 Jun 2023 19:16:37 +0200 Subject: [PATCH] refactor: measure -> measurement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/pools/worker.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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. */ -- 2.34.1