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