script.sh 521 B

123456789101112131415
  1. # Cleanup existing perf stuff
  2. rm isolate-*.log
  3. # Ensure we use the latest build version
  4. npm run babelify
  5. # Run Tailwind on the big fixture file & profile it
  6. node --prof lib/cli.js build ./perf/fixture.css -c ./perf/tailwind.config.js -o ./perf/output.css
  7. # Generate flame graph
  8. node --prof-process --preprocess -j isolate*.log > ./perf/v8.json
  9. # Now visit: https://mapbox.github.io/flamebearer/
  10. # And drag that v8.json file in there!
  11. # You can put "./lib" in the search box which will highlight all our code in green.