tree: f5d5620a5d181bcb7e9de609e1f3f4ccd04f9faa [path history] [tgz]
  1. OWNERS
  2. README.md
  3. cmd/
tools/size_checker/README.md

Size Checker

A executable that checks if a build exceeds its allocated space limit.

Local Run

Run the following command in the output directory:

host_x64/size_checker --build-dir .

Space Limit

The space limit is governed by the size_checker.json, which is generated based on the size_checker_input argument.

This argument is typically defined in the $product.gni file of the current product.board configuration.

For a full description of its argument, see cmd/BUILD.gn.

Dependencies

The test has many hardcoded dependencies, so you only need to pass in the build directory.

It expects to find the following files in the output directory:

blob.sizes
gen/build/images/blob.manifest.list
size_checker.json

Additionally, it also depends on the blobs.json of each package to be in the same directory as the meta.far file.