@memlab/cli 1.0.30 → 1.0.32
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.
- package/bin/memlab.js +1 -1
- package/dist/commands/RunMeasureCommand.d.ts +1 -0
- package/dist/commands/RunMeasureCommand.d.ts.map +1 -1
- package/dist/commands/RunMeasureCommand.js +9 -0
- package/package.json +7 -7
- package/dist/TypesThirdParty.d.ts +0 -17
- package/dist/TypesThirdParty.d.ts.map +0 -1
- package/dist/TypesThirdParty.js +0 -10
package/bin/memlab.js
CHANGED
|
@@ -16,6 +16,7 @@ export default class RunMeasureCommand extends BaseCommand {
|
|
|
16
16
|
getPrerequisites(): BaseCommand[];
|
|
17
17
|
getExamples(): CommandOptionExample[];
|
|
18
18
|
getOptions(): BaseOption[];
|
|
19
|
+
getDocumenation(): string;
|
|
19
20
|
run(options: CLIOptions): Promise<void>;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=RunMeasureCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunMeasureCommand.d.ts","sourceRoot":"","sources":["../../src/commands/RunMeasureCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAgB,UAAU,EAAC,MAAM,cAAc,CAAC;AAyBvD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,WAAW,EAAE;IAIjC,WAAW,IAAI,oBAAoB,EAAE;IAQrC,UAAU,IAAI,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"RunMeasureCommand.d.ts","sourceRoot":"","sources":["../../src/commands/RunMeasureCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAgB,UAAU,EAAC,MAAM,cAAc,CAAC;AAyBvD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,WAAW,EAAE;IAIjC,WAAW,IAAI,oBAAoB,EAAE;IAQrC,UAAU,IAAI,UAAU,EAAE;IA0B1B,eAAe,IAAI,MAAM;IAYnB,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
|
|
@@ -89,6 +89,15 @@ class RunMeasureCommand extends BaseCommand_1.default {
|
|
|
89
89
|
new EnableJSInterceptOption_1.default(),
|
|
90
90
|
];
|
|
91
91
|
}
|
|
92
|
+
getDocumenation() {
|
|
93
|
+
return ('In some web apps, the heap size can show considerable variability' +
|
|
94
|
+
' across various runs. This fluctuation can often make it hard to' +
|
|
95
|
+
' understand the impact of memory leaks. The introduction of the measure' +
|
|
96
|
+
' mode aims to address this challenge by executing the same scenario' +
|
|
97
|
+
' repetitively, therefore getting multiple data points of JavaScript heap' +
|
|
98
|
+
' sizes. This can help understand if the heap size movements during' +
|
|
99
|
+
' specific runs come from memory-related issues or just noise.');
|
|
100
|
+
}
|
|
92
101
|
run(options) {
|
|
93
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
103
|
const numRuns = NumberOfRunsOption_1.default.getParsedOption(options.configFromOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memlab/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "command line interface for memlab",
|
|
6
6
|
"author": "Liang Gong <lgong@fb.com>",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memlab/api": "^1.0.
|
|
30
|
-
"@memlab/core": "^1.1.
|
|
31
|
-
"@memlab/e2e": "^1.0.
|
|
32
|
-
"@memlab/heap-analysis": "^1.0.
|
|
29
|
+
"@memlab/api": "^1.0.29",
|
|
30
|
+
"@memlab/core": "^1.1.30",
|
|
31
|
+
"@memlab/e2e": "^1.0.30",
|
|
32
|
+
"@memlab/heap-analysis": "^1.0.27",
|
|
33
33
|
"ansi": "^0.3.1",
|
|
34
34
|
"babar": "^0.2.0",
|
|
35
35
|
"blessed": "^0.1.81",
|
|
36
36
|
"chalk": "^4.0.0",
|
|
37
37
|
"fs-extra": "^4.0.2",
|
|
38
|
-
"minimist": "^1.2.
|
|
38
|
+
"minimist": "^1.2.8",
|
|
39
39
|
"puppeteer": "^21.0.3",
|
|
40
40
|
"puppeteer-core": "^21.0.3",
|
|
41
41
|
"string-width": "^4.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/blessed": "^0.1.19",
|
|
47
47
|
"@types/fs-extra": "^9.0.3",
|
|
48
48
|
"@types/jest": "^27.4.1",
|
|
49
|
-
"@types/minimist": "^1.2.
|
|
49
|
+
"@types/minimist": "^1.2.5",
|
|
50
50
|
"@types/node": "^12.16.3",
|
|
51
51
|
"@types/puppeteer": "^5.4.4",
|
|
52
52
|
"jest": "^29.6.2",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @format
|
|
8
|
-
* @oncall web_perf_infra
|
|
9
|
-
*/
|
|
10
|
-
/// <reference types="node" />
|
|
11
|
-
declare module 'html-inline' {
|
|
12
|
-
interface InlinerParams {
|
|
13
|
-
basedir: string;
|
|
14
|
-
}
|
|
15
|
-
export default function Inliner(params: InlinerParams): NodeJS.ReadWriteStream;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=TypesThirdParty.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TypesThirdParty.d.ts","sourceRoot":"","sources":["../src/TypesThirdParty.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;;AAEH,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,aAAa;QACrB,OAAO,EAAE,MAAM,CAAC;KACjB;IACD,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,MAAM,EAAE,aAAa,GACpB,MAAM,CAAC,eAAe,CAAC;CAC3B"}
|
package/dist/TypesThirdParty.js
DELETED