Permalink
Browse files

Merge pull request #63 from akzhan/master

readme minor update - js syntax highlighting
  • Loading branch information...
2 parents d1906c9 + eeeb3ea commit 7598cacc5b85405d5419fcc7d83ba8002d470510 @dannycoates dannycoates committed Sep 3, 2011
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 7598cac

Please sign in to comment.