Flutter Engine
The Flutter Engine
Checkout & Build V8

Get V8 checkout

Assuming depot_tools is installed and in PATH:

Get V8 source & build

% mkdir v8-gclient && cd v8-gclient
v8-gclient % fetch v8 && cd v8
v8-gclient/v8 % tools/dev/gm.py x64.release d8 wami
...

See also https://v8.dev/docs/source-code See also https://v8.dev/docs/build

If it fails due to GOMA/RBE errors it may help ensuring all goma related environment variables are cleared.

Build with profiling support enabled

v8-gclient/v8 % vim out/x64.release/args.gn
...
enable_profiling = true
...
v8-gclient/v8 % tools/dev/gm.py x64.release d8 wami
...

See also https://v8.dev/docs/linux-perf