GitXplorerGitXplorer
n

ninjatracing

public
427 stars
44 forks
11 issues

Commits

List of commits on branch main.
Unverified
a669e3644cf22b29cbece31dbed2cfbf34e5f48e

Remove unused __future__ import now that this is py3-only

nnico committed a year ago
Unverified
ceff5c0daf995d138d7cc6fcb3c73164e4c57046

Ignore comment lines in log

hhadrielk committed 3 years ago
Unverified
c600f2a8970cf070a76018f1b9a514273798936a

Stop running tests on python 2.7 and 3.6

nnico committed a year ago
Verified
7c6224564024b55e2c42139e8cecb28cb0b3bed7

Merge pull request #26 from atetubou/patch-1

nnico committed a year ago
Verified
b69f81d715e748162bc698477ed6aff5d7d763ff

Change shebang of the script to python3

aatetubou committed 3 years ago
Verified
f9d21e973cfdeafa913b83a927fef56258f70b9a

Merge pull request #24 from theidexisted/master

nnico committed 3 years ago

README

The README file for this repository.

ninjatracing

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

To view traces, either open about:tracing in chrome, or use https://www.speedscope.app/ or https://ui.perfetto.dev/.

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