You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,10 @@ var profiler = require('v8-profiler-node8');
46
46
`deleteAllSnapshots()` - works as described in name.
47
47
48
48
```js
49
+
constprofiler=require('v8-profiler-node8')
49
50
var snapshot1 =profiler.takeSnapshot('1');
50
-
var snapshot2 =profiler.takeSnapshot();
51
+
var snapshot2 =profiler.takeSnapshot()
52
+
console.log(profiler.snapshots);
51
53
profiler.deleteAllSnapshots();
52
54
```
53
55
@@ -62,9 +64,11 @@ profiler.deleteAllSnapshots();
62
64
`collectSample()` - causes all active profiles to synchronously record the current callstack. Does not add a new top level sample, only adds more detail to the call graph.
0 commit comments