Skip to content

Instantly share code, notes, and snippets.

@mxstbr
Created January 26, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxstbr/dbb1c363c384143cebfe0fe030204ca2 to your computer and use it in GitHub Desktop.
Save mxstbr/dbb1c363c384143cebfe0fe030204ca2 to your computer and use it in GitHub Desktop.

First, start Chrome and open the page you want to profile:

./chrome --js-flags=”--prof” --no-sandbox http://localhost:8080/index.html

Note: This page should do things on-load, simply close Chrome once it's done

Then preprocess the biggest .log file you get: (since the biggest one should be from the main renderer):

v8/tools/linux-tick-processor --preprocess v8.log

This gives you a JSON file which is an analysis of the logs, which you load into profview:

v8/tools/profview/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment