Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 561 Bytes

PROFILING.md

File metadata and controls

25 lines (19 loc) · 561 Bytes

Profiling

Using speedscope

https://github.com/jlfwong/speedscope/wiki/Importing-from-Node.js

cd packages/experiment
yarn node --prof ../crafty/src/bin.js run
node --prof-process --preprocess -j isolate*.log | speedscope -

Using Google Chrome

cd packages/integration/fixtures/crafty-preset-swc-g/lints-es5
node --inspect-brk ../../../../crafty/src/bin.js run
  • open about:inspect in Google Chrome
  • Find your instance, click "inspect"
  • Go to "Profiler" Tab
  • Click "Start"
  • Wait for the process to finish
  • Click "Stop"