• Home
Name Date Size #Lines LOC

..--

BUILD.bazelD03-May-20241.9 KiB7466

README.mdD03-May-20241.1 KiB4933

bp2build_module_dep_infos.pyD03-May-20245.1 KiB168117

bp2build_progress.pyD03-May-202417.1 KiB531410

bp2build_progress_test.pyD03-May-202416.5 KiB415349

dependency_analysis.pyD03-May-202414 KiB467332

dependency_analysis_test.pyD03-May-202417.5 KiB559436

queryview_xml.pyD03-May-20241.9 KiB6440

soong_module_json.pyD03-May-20241.5 KiB6238

README.md

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