Permalink
Browse files

Syntax highlighting

  • Loading branch information...
akzhan committed Sep 3, 2011
1 parent d1906c9 commit eeeb3ea0d39cb8568910e5abd814b69a2009c26e
Showing with 11 additions and 9 deletions.
  1. +11 −9 readme.md
View
@@ -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.

0 comments on commit eeeb3ea

Please sign in to comment.