Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Syntax highlighting

  • Loading branch information...
commit eeeb3ea0d39cb8568910e5abd814b69a2009c26e 1 parent d1906c9
@akzhan akzhan authored
Showing with 11 additions and 9 deletions.
  1. +11 −9 readme.md
View
20 readme.md
@@ -109,15 +109,17 @@ To use the profiles panel, install the v8-profiler module:
To use it do something like:
- var profiler = require('v8-profiler');
-
- profiler.startProfiling('startup');
- slowStartupFoo();
- profiler.stopProfiling('startup');
-
- profiler.takeSnapshot('beforeLeak');
- leakyFoo();
- profiler.takeSnapshot('afterLeak');
+```javascript
+var profiler = require('v8-profiler');
+
+profiler.startProfiling('startup');
+slowStartupFoo();
+profiler.stopProfiling('startup');
+
+profiler.takeSnapshot('beforeLeak');
+leakyFoo();
+profiler.takeSnapshot('afterLeak');
+```
Then view the profiling results with the profiles panel in node-inspector. You can
also take heap snapshots on demand from the profiles panel.
Please sign in to comment.
Something went wrong with that request. Please try again.