Skip to content

Commit 89c7545

Browse files
📚 docs(optimization): Make instructions reusable.
1 parent a019396 commit 89c7545

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/manual/optimization.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ Mostly noise for the moment. There must be something else to fix...
128128
129129
At this point I decided to use a better tool than intuition to progress:
130130
profiling. This change is the first where I guided the pruning by looking at
131-
the output of `node --prof benchmark/tree.js` using `node-tick-processor`
132-
from the [tick](https://www.npmjs.com/package/tick) package.
131+
the output of `node --prof benchmark/tree.js` using `node --prof-process`.
133132

134133
Before this change, digit measures where computed using the idiom
135134

@@ -216,7 +215,7 @@ This is a big one. I started writing this library with es6 syntax in mind.
216215
However, looking at the profiler output you will see:
217216

218217
```sh
219-
$ node-tick-processor isolate-0x2af4cf0-v8.log | grep '3:24'
218+
$ node --prof-process (exa -snew isolate-*.log | tail -1) | grep '3:24'
220219
146 2.3% 2.4% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24
221220
278 100.0% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24
222221
6 100.0% LazyCompile: *get ~/sandbox/finger-tree/js/dist/fingertree.js:3:24

0 commit comments

Comments
 (0)