tree: d5583a32503581c4f2fb892908f3a8e2498d6209
  1. bp2build-progress.py
  2. bp2build_module_dep_infos.py
  3. BUILD.bazel
  4. dependency_analysis.py
  5. dependency_analysis_test.py
  6. queryview_xml.py
  7. README.md
  8. soong_module_json.py
scripts/bp2build-progress/README.md

bp2build progress graphs

This directory contains tools to generate reports and .png graphs of the bp2build conversion progress, for any module.

This tool relies on json-module-graph and bp2build to be buildable targets for this branch.

Prerequisites

  • /usr/bin/dot: turning dot graphviz files into .pngs

Tip: --use_queryview=true runs bp2build-progress.py with queryview.

Instructions

Generate the report for a module, e.g. adbd

bazel run --config=bp2build --config=linux_x86_64 \
  //build/bazel/scripts/bp2build-progress:bp2build-progress \
  -- report -m <module-name>

or:

bazel run --config=bp2build --config=linux_x86_64 \
  //build/bazel/scripts/bp2build-progress:bp2build-progress \
  -- report -m <module-name> --use-queryview

When running in report mode, you can also write results to a proto with the flag --proto-file

Generate the report for a module, e.g. adbd

bazel run --config=bp2build --config=linux_x86_64 \
  //build/bazel/scripts/bp2build-progress:bp2build-progress \
  -- graph -m adbd > /tmp/graph.in && \
  dot -Tpng -o /tmp/graph.png /tmp/graph.in

or:

bazel run --config=bp2build --config=linux_x86_64 \
  //build/bazel/scripts/bp2build-progress:bp2build-progress \
  -- graph -m adbd --use-queryview > /tmp/graph.in && \
  dot -Tpng -o /tmp/graph.png /tmp/graph.in