memlab 1.1.9-alpha → 1.1.10-alpha
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/README.md +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ for analyzing heap snapshots taken from Chrome/Chromium, Node.js, Hermes, and El
|
|
|
9
9
|
Install the CLI
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install -g
|
|
12
|
+
npm install -g memlab
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### Find Memory Leaks
|
|
@@ -47,7 +47,7 @@ If you want to use a self-defined leak detector, add a `filterLeak` callback
|
|
|
47
47
|
in the scenario file. `filterLeak` will be called for every unreleased heap
|
|
48
48
|
object (`node`) allocated by the target interaction.
|
|
49
49
|
|
|
50
|
-
```
|
|
50
|
+
```javascript
|
|
51
51
|
function filterLeak(node, heap) {
|
|
52
52
|
// ... your leak detector logic
|
|
53
53
|
// return true to mark the node as a memory leak
|
|
@@ -55,6 +55,7 @@ function filterLeak(node, heap) {
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
`heap` is the graph representation of the final JavaScript heap snapshot.
|
|
58
|
+
For more details, view the [doc site](https://facebookincubator.github.io/memlab).
|
|
58
59
|
|
|
59
60
|
### Heap Analysis and Investigation
|
|
60
61
|
|
|
@@ -96,4 +97,4 @@ const scenario = {
|
|
|
96
97
|
back: async (page) => await page.click('[aria-label="Clear search"]'),
|
|
97
98
|
}
|
|
98
99
|
memlab.run({scenario});
|
|
99
|
-
```
|
|
100
|
+
```
|
package/package.json
CHANGED