@memlab/cli 2.0.1 → 2.0.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.
- package/dist/commands/heap/interactive/InteractiveHeapExploreCommand.js +1 -1
- package/dist/commands/heap/interactive/ui-components/HeapViewController.js +1 -1
- package/dist/options/SetMaxClusterSampleSizeOption.js +1 -1
- package/dist/options/heap/HeapParserDictFastStoreSizeOption.js +1 -1
- package/package.json +5 -5
|
@@ -116,7 +116,7 @@ class InteractiveHeapViewCommand extends BaseCommand_1.default {
|
|
|
116
116
|
getDetachedNodes(heap) {
|
|
117
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
118
|
const ret = [];
|
|
119
|
-
const idSet = new
|
|
119
|
+
const idSet = new core_1.NumericSet();
|
|
120
120
|
heap.nodes.forEach(node => {
|
|
121
121
|
if (core_1.utils.isDetachedDOMNode(node) || core_1.utils.isDetachedFiberNode(node)) {
|
|
122
122
|
idSet.add(node.id);
|
|
@@ -54,7 +54,7 @@ class HeapViewController {
|
|
|
54
54
|
}
|
|
55
55
|
clusterComponentDataItems(nodes) {
|
|
56
56
|
const ret = [];
|
|
57
|
-
const nodeIds = new
|
|
57
|
+
const nodeIds = new core_1.NumericSet(nodes
|
|
58
58
|
.filter(node => node.heapObject)
|
|
59
59
|
.map(node => { var _a, _b; return (_b = (_a = node.heapObject) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : -1; }));
|
|
60
60
|
const clusters = core_1.analysis.clusterHeapObjects(nodeIds, this.heap);
|
|
@@ -30,7 +30,7 @@ class SetMaxClusterSampleSizeOption extends core_1.BaseOption {
|
|
|
30
30
|
getDescription() {
|
|
31
31
|
return ('specify the max number of leak traces as input to leak trace ' +
|
|
32
32
|
'clustering algorithm. Big sample size will preserve more complete ' +
|
|
33
|
-
'
|
|
33
|
+
'information, but may risk out-of-memory crash.');
|
|
34
34
|
}
|
|
35
35
|
getExampleValues() {
|
|
36
36
|
return ['5000', '10000'];
|
|
@@ -28,7 +28,7 @@ class HeapParserDictFastStoreSizeOption extends core_1.BaseOption {
|
|
|
28
28
|
return OptionConstant_1.default.optionNames.HEAP_PARSER_DICT_FAST_STORE_SIZE;
|
|
29
29
|
}
|
|
30
30
|
getDescription() {
|
|
31
|
-
return ('the size threshold for
|
|
31
|
+
return ('the size threshold for switching from fast store to slower store in ' +
|
|
32
32
|
'the heap snapshot parser. The default value is 5,000,000. If you get ' +
|
|
33
33
|
'the `FATAL ERROR: invalid table size Allocation failed - JavaScript ' +
|
|
34
34
|
'heap out of memory` error, try to decrease the threshold here');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memlab/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "command line interface for memlab",
|
|
6
6
|
"author": "Liang Gong <lgong@meta.com>",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memlab/api": "^2.0.
|
|
30
|
-
"@memlab/core": "^2.0.
|
|
31
|
-
"@memlab/e2e": "^2.0.
|
|
32
|
-
"@memlab/heap-analysis": "^2.0.
|
|
29
|
+
"@memlab/api": "^2.0.3",
|
|
30
|
+
"@memlab/core": "^2.0.3",
|
|
31
|
+
"@memlab/e2e": "^2.0.3",
|
|
32
|
+
"@memlab/heap-analysis": "^2.0.3",
|
|
33
33
|
"ansi": "^0.3.1",
|
|
34
34
|
"babar": "^0.2.0",
|
|
35
35
|
"blessed": "^0.1.81",
|