@lde/pipeline-console-reporter 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,6 +25,7 @@ export declare class ConsoleReporter implements ProgressReporter {
|
|
|
25
25
|
itemsProcessed: number;
|
|
26
26
|
quadsGenerated: number;
|
|
27
27
|
memoryUsageBytes: number;
|
|
28
|
+
heapUsedBytes: number;
|
|
28
29
|
}): void;
|
|
29
30
|
stageComplete(_stage: string, result: {
|
|
30
31
|
itemsProcessed: number;
|
|
@@ -36,11 +37,13 @@ export declare class ConsoleReporter implements ProgressReporter {
|
|
|
36
37
|
stageSkipped(_stage: string, reason: string): void;
|
|
37
38
|
datasetComplete(_dataset: Dataset, result: {
|
|
38
39
|
memoryUsageBytes: number;
|
|
40
|
+
heapUsedBytes: number;
|
|
39
41
|
}): void;
|
|
40
42
|
datasetSkipped(_dataset: Dataset, reason: string): void;
|
|
41
43
|
pipelineComplete(result: {
|
|
42
44
|
duration: number;
|
|
43
45
|
memoryUsageBytes: number;
|
|
46
|
+
heapUsedBytes: number;
|
|
44
47
|
}): void;
|
|
45
48
|
}
|
|
46
49
|
//# sourceMappingURL=consoleReporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleReporter.d.ts","sourceRoot":"","sources":["../src/consoleReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAgBvB,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,OAAO,CAAC,aAAa,CAAC,CAAM;IAC5B,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,YAAY,CAAK;IACzB,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E,gBAAgB,GAAG,IAAI;IAc9D,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAQlD,eAAe,CACb,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,GAC1D,IAAI;IASP,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIvD,gBAAgB,CAAC,MAAM,EAAE;QACvB,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;KACvB,GAAG,IAAI;CAOT"}
|
package/dist/consoleReporter.js
CHANGED
|
@@ -149,7 +149,7 @@ export class ConsoleReporter {
|
|
|
149
149
|
stageProgress(update) {
|
|
150
150
|
if (this.activeSpinner) {
|
|
151
151
|
const elapsed = prettyMilliseconds(Date.now() - this.stageStartTime);
|
|
152
|
-
this.activeSpinner.suffixText = `${compactNumber.format(update.itemsProcessed)} items, ${compactNumber.format(update.quadsGenerated)} quads, ${elapsed}, memory: ${formatBytes(update.memoryUsageBytes)}`;
|
|
152
|
+
this.activeSpinner.suffixText = `${compactNumber.format(update.itemsProcessed)} items, ${compactNumber.format(update.quadsGenerated)} quads, ${elapsed}, memory: ${formatBytes(update.memoryUsageBytes)} RSS, ${formatBytes(update.heapUsedBytes)} heap`;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
stageComplete(_stage, result) {
|
|
@@ -182,12 +182,12 @@ export class ConsoleReporter {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
datasetComplete(_dataset, result) {
|
|
185
|
-
this.printLine('succeed', `Completed in ${chalk.bold(prettyMilliseconds(Date.now() - this.datasetStartTime))} ${chalk.dim(`(memory: ${formatBytes(result.memoryUsageBytes)})`)}`);
|
|
185
|
+
this.printLine('succeed', `Completed in ${chalk.bold(prettyMilliseconds(Date.now() - this.datasetStartTime))} ${chalk.dim(`(memory: ${formatBytes(result.memoryUsageBytes)} RSS, ${formatBytes(result.heapUsedBytes)} heap)`)}`);
|
|
186
186
|
}
|
|
187
187
|
datasetSkipped(_dataset, reason) {
|
|
188
188
|
this.printLine('fail', `Skipped: ${chalk.red(reason)}`);
|
|
189
189
|
}
|
|
190
190
|
pipelineComplete(result) {
|
|
191
|
-
process.stderr.write(`\nPipeline completed in ${chalk.bold(prettyMilliseconds(result.duration))} ${chalk.dim(`(memory: ${formatBytes(result.memoryUsageBytes)})`)}\n`);
|
|
191
|
+
process.stderr.write(`\nPipeline completed in ${chalk.bold(prettyMilliseconds(result.duration))} ${chalk.dim(`(memory: ${formatBytes(result.memoryUsageBytes)} RSS, ${formatBytes(result.heapUsedBytes)} heap)`)}\n`);
|
|
192
192
|
}
|
|
193
193
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lde/pipeline-console-reporter",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Console progress reporter for @lde/pipeline",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/ldelements/lde.git",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@lde/dataset": "0.7.2",
|
|
35
|
-
"@lde/pipeline": "0.25.
|
|
35
|
+
"@lde/pipeline": "0.25.3"
|
|
36
36
|
}
|
|
37
37
|
}
|