- Install Ninja
sudo apt install ninja-build
- Configure CMake to create Ninja build files
mkdir build && cd build
PARALLEL_LEVEL=N cmake -GNinja ..
- Fill in
N
with an appropriate number of threads for your system.
- Build
ninja
That's it!
- Get
ninjatracing
git clone https://github.com/nico/ninjatracing.git
- Use
ninjatracing
to convert log file into a Chrome trace file
./ninjatracing.py build/.ninja_log > trace.json
- Open trace file in Chrome
- Enter
chrome://tracing
in the URL bar of Chrome - Click "Load" button on top left and select the
trace.json
file
- Enter