Files
android_development/tools/ninja_dependency_analysis/Android.bp
Justin Yun f020989c94 Generate ninja_inputs.pb as build metrics
To monitor ninja inputs, generate ninja_inputs.pb as build metrics.
This will count the number of input files and required git projects,
with the number of files for each project.

Bug: 241033491
Test: $ cp .repo/manifests/default.xml out/dist/manifest_1.xml
      $ development/multitree/build_vendor.sh -d vsoc_x86_64 \
          -p cf_x86_64_phone -r out/dist -i 1
Change-Id: Ie185863f1c8fca313baba6135374d509e2d93937
2022-08-29 15:20:12 +09:00

28 lines
555 B
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
python_binary_host {
name: "collect_ninja_inputs",
srcs: [
"collect_ninja_inputs.py",
"ninja_metrics_proto/ninja_metrics.py",
"ninja_metrics_proto/ninja_metrics.proto",
],
libs: [
"libprotobuf-python",
],
proto: {
canonical_path_from_root: false,
},
version: {
py2: {
enabled: false,
},
py3: {
enabled: true,
embedded_launcher: true,
},
}
}