Skip to content

Commit 1e1aa2d

Browse files
committed
Update guide: "Easy profiling for Node.js"
Instructions on using the tick processor now use the flag on the Node.js binary --prof-process for all versions and remove mention of processing scripts (which are now removed). Fixes #447
1 parent 93e9302 commit 1e1aa2d

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

locale/en/docs/guides/simple-profiling.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ code-creation,Stub,2,0x2d5000a33e00,507,"NumberToStringStub"
2121
```
2222

2323
In the past you need the V8 source code to be able to interpret the ticks.
24-
Luckily, tools have recently been introduced into Node.js 4.1.1 that facilitate
24+
Luckily, tools have recently been introduced into Node.js 4.4.0 that facilitate
2525
the consumption of this information without separately building V8 from source.
2626
Let's see how the built-in profiler can help provide insight into application
2727
performance.
@@ -135,18 +135,8 @@ Since we ran our application using the `--prof` option, a tick file was generate
135135
in the same directory as your local run of the application. It should have the
136136
form `isolate-0xnnnnnnnnnnnn-v8.log` (where `n` is a digit).
137137

138-
In order to make sense of this file, we need to use the tick processor included
139-
in the Node.js
140-
source at `<nodejs_dir>/tools/v8-prof/tick-processor.js`. It is important that
141-
the version of the tick-processor comes from the source for the version of node
142-
used to generate the isolate file. The raw tick output can be
143-
processed using this tool by running:
144-
145-
```
146-
node <path_to_nodejs_src>/tools/v8-prof/tick-processor.js isolate-0xnnnnnnnnnnnn-v8.log > processed.txt
147-
```
148-
149-
Starting in Node.js 5.2.2, the tick processor is bundled with the Node.js binary and can be run using the `--prof-process` flag:
138+
In order to make sense of this file, we need to use the tick processor bundled
139+
with the Node.js binary. To run the processor, use the `--prof-process` flag:
150140

151141
```
152142
node --prof-process isolate-0xnnnnnnnnnnnn-v8.log > processed.txt

0 commit comments

Comments
 (0)