1# bp2build progress graphs 2 3This directory contains tools to generate reports and .png graphs of the 4bp2build conversion progress, for any module. 5 6This tool relies on `json-module-graph` and `bp2build` to be buildable targets 7for this branch. 8 9## Prerequisites 10 11* `/usr/bin/dot`: turning dot graphviz files into .pngs 12 13Tip: `--use_queryview=true` runs `bp2build_progress.py` with queryview. 14 15## Instructions 16 17# Generate the report for a module, e.g. adbd 18 19```sh 20b run //build/bazel/scripts/bp2build_progress:bp2build_progress \ 21 -- report -m <module-name> 22``` 23 24or: 25 26```sh 27b run //build/bazel/scripts/bp2build_progress:bp2build_progress \ 28 -- report -m <module-name> --use-queryview 29``` 30 31When running in report mode, you can also write results to a proto with the flag 32`--proto-file` 33 34# Generate the report for a module, e.g. adbd 35 36```sh 37b run //build/bazel/scripts/bp2build_progress:bp2build_progress \ 38 -- graph -m adbd > /tmp/graph.in && \ 39 dot -Tpng -o /tmp/graph.png /tmp/graph.in 40``` 41 42or: 43 44```sh 45b run //build/bazel/scripts/bp2build_progress:bp2build_progress \ 46 -- graph -m adbd --use-queryview > /tmp/graph.in && \ 47 dot -Tpng -o /tmp/graph.png /tmp/graph.in 48``` 49