Skip to content

Commit 16452cd

Browse files
committed
Add clinic profiling guide to developer docs
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
1 parent cae775d commit 16452cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/developer.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,11 @@ python utils/diffTestOutput.py output-wip-byzantium.txt output-master.txt
126126
```
127127

128128
An extremely rich and powerful toolbox is the [evmlab](https://github.com/holiman/evmlab) from ``holiman``, both for debugging and creating new test cases or example data.
129+
130+
## Profiling
131+
132+
[Clinic](https://github.com/nearform/node-clinic) Allows profiling the VM in the node environment. It supports various profiling methods, among them is [flame](https://github.com/nearform/node-clinic-flame) which can be used for generating flamegraphs to highlight bottlenecks and hot paths. As an example, to generate a flamegraph for the VM blockchain tests, you can run:
133+
134+
```sh
135+
NODE_OPTIONS="--max-old-space-size=4096" clinic flame -- node ./tests/tester.js -b --excludeDir='GeneralStateTests'
136+
```

0 commit comments

Comments
 (0)