Skip to content

Commit 7a639c2

Browse files
ddunbardmbryson
authored andcommitted
[README] Mention our ninja --profile option.
1 parent 5a19527 commit 7a639c2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ primarily only useful for developers interested in working on the Ninja
6161
support. These commands allow testing the lexer, parser, and manifest loading
6262
components independently and are used as part of the test suite.
6363

64+
#### Build Trace Files
65+
66+
Inspired by Buck, `llbuild ninja` supports a `--profile PATH` option to generate
67+
a
68+
[Chromium trace](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) for
69+
visualizing where time is spent during a build. For example, the following graph
70+
is for a build of llbuild itself:
71+
72+
![llbuild build profile](docs/llbuild-profile.png)
73+
6474
### `swift-build-tool` Command Line Tool
6575

6676
The `swift-build-tool` product is the command line interface to the build system

docs/llbuild-profile.png

140 KB
Loading

0 commit comments

Comments
 (0)