Need help with ninjatracing?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

nico
144 Stars 25 Forks Apache License 2.0 46 Commits 2 Opened issues

Description

Convert .ninja_log files to chrome's about:tracing format.

Services available

!
?

Need anything else?

Contributors list

# 23,769
OCaml
c-plus-...
macvim
desktop...
10 commits
# 60,813
C++
Shell
C#
webrtc
7 commits
# 628,354
LLVM
C
linker
c-plus-...
4 commits
# 219,000
Objecti...
Shell
C
webrtc
3 commits
# 22,229
C
x265
ffmpeg
c-plus-...
1 commit
# 103,180
Shell
c-plus-...
bundle-...
OCaml
1 commit
# 212,354
c-plus-...
Shell
C
voxels
1 commit
# 56,217
C++
webasse...
webrtc
javascr...
1 commit
# 259,775
Objecti...
Shell
C
webrtc
1 commit
# 98,847
OCaml
coding-...
c-plus-...
linker
1 commit

ninjatracing

Convert .ninja_log files to chrome's about:tracing format.

Idea from Nick Carter, initial implementation from Richard Smith.

$ ./ninjatracing
Converts one (or several) .ninja_log files into chrome's about:tracing format

Usage: ninja -C $BUILDDIR ninjatracing $BUILDDIR/.ninja_log > trace.json

By default this will show build timing results for the most recent (possibly incremental) build. To show build timing results for every target, whether built in the last build or previously, use --showall. Note that this will overlap multiple builds and will thus exaggerate build parallelism.

(When using --showall, ideally rm $BUILDDIR/.ninja_log and do a clean build. If you don't have time for a clean build, at least run ninja -C $BUILDDIR -t recompact first to remove no-longer-built targets.)

The results can be converted from .json format to .html format, for easier loading into about:tracing, using trace2html from: https://github.com/catapult-project/catapult/blob/master/tracing/bin/trace2html

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.