@memlab/heap-analysis 1.0.35 → 1.0.36
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeapAnalysisOutputOption.d.ts","sourceRoot":"","sources":["../../src/options/HeapAnalysisOutputOption.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,EAAC,YAAY,EAAsB,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,UAAU;IAC9D,aAAa,IAAI,MAAM;IAIvB,cAAc,IAAI,MAAM;
|
|
1
|
+
{"version":3,"file":"HeapAnalysisOutputOption.d.ts","sourceRoot":"","sources":["../../src/options/HeapAnalysisOutputOption.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,EAAC,YAAY,EAAsB,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,UAAU;IAC9D,aAAa,IAAI,MAAM;IAIvB,cAAc,IAAI,MAAM;IAUxB,gBAAgB,IAAI,MAAM,EAAE;IAItB,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IASlE,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAWjC"}
|
|
@@ -25,7 +25,11 @@ class HeapAnalysisOutputOption extends core_2.BaseOption {
|
|
|
25
25
|
return 'output';
|
|
26
26
|
}
|
|
27
27
|
getDescription() {
|
|
28
|
-
|
|
28
|
+
const options = this.getExampleValues()
|
|
29
|
+
.map(v => `'${v}'`)
|
|
30
|
+
.join(', ');
|
|
31
|
+
return ('specify output format of the analysis ' +
|
|
32
|
+
`(available options: ${options}; defaults to 'text')`);
|
|
29
33
|
}
|
|
30
34
|
getExampleValues() {
|
|
31
35
|
return ['text', 'json'];
|
|
@@ -83,7 +83,7 @@ class ObjectShapeAnalysis extends BaseAnalysis_1.default {
|
|
|
83
83
|
const key = core_1.serializer.summarizeNodeShape(node);
|
|
84
84
|
breakdown[key] = breakdown[key] || new Set();
|
|
85
85
|
breakdown[key].add(node.id);
|
|
86
|
-
if (population[key] ===
|
|
86
|
+
if (population[key] === void 0) {
|
|
87
87
|
population[key] = { examples: [], n: 0 };
|
|
88
88
|
}
|
|
89
89
|
++population[key].n;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memlab/heap-analysis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "heap analysis plugins for memlab",
|
|
6
6
|
"author": "Liang Gong <lgong@fb.com>",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@memlab/core": "^1.1.
|
|
24
|
-
"@memlab/e2e": "^1.0.
|
|
23
|
+
"@memlab/core": "^1.1.39",
|
|
24
|
+
"@memlab/e2e": "^1.0.39",
|
|
25
25
|
"ansi": "^0.3.1",
|
|
26
26
|
"babar": "^0.2.0",
|
|
27
27
|
"chalk": "^4.0.0",
|