16 апр. 2019 г.

V8 Runtime Call Stats on Timeline

  1. Go to chrome://flags/#enable-devtools-experiments
  2. Enable DevTools experiments
  3. Restart Chrome
  4. Open DevTools - Settings - Experiments
  5. Hit Shift 6 times
  6. Check the option called Timeline: V8 Runtime Call Stats on Timeline
  7. Close then re-open DevTools

1 мар. 2019 г.

V8 --prof


  1. Run Chrome or Node.js with --prof flag
    chrome --js-flags='--prof' --no-sandbox 'http://localhost:8080/'
    
    node --prof script.js
  2. Install tick processor https://github.com/dex4er/js-tick-processor
    
    npm install -g tick-processor
  3. tick-processor isolate-0x123456-v8.log >isolate-0x123456-v8.txt