X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=e1fb311e45b4eb8ed0e5d33cda3b3806d7526f5b;hb=37b32d84b2a0d8f8addad8c5e6a306c7dd22d58d;hp=1783b4e6f36adfa9f778cbd74b3ce46975bb40a2;hpb=1e3214b63e262557aadebf3c57e8388de6a4bbe4;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 1783b4e6..e1fb311e 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -47,13 +47,19 @@ export interface TaskPerformance { } /** - * Performance statistics computation. + * Worker task performance statistics computation settings. * * @internal */ export interface WorkerStatistics { - runTime: boolean - elu: boolean + /** + * Whether the worker computes the task runtime or not. + */ + readonly runTime: boolean + /** + * Whether the worker computes the task event loop utilization (ELU) or not. + */ + readonly elu: boolean } /** @@ -110,6 +116,10 @@ export interface MessageValue * Task performance. */ readonly taskPerformance?: TaskPerformance + /** + * Task function names. + */ + readonly taskFunctions?: string[] /** * Whether the worker computes the given statistics or not. */ @@ -148,3 +158,5 @@ export interface PromiseResponseWrapper { */ readonly workerNodeKey: number } + +export type Writable = { -readonly [P in keyof T]: T[P] }