-
Samuel Huang authored
This CL adds the script and the target needed to extract Lacros binary / resource size histogram JSON files, which are needed for size monitoring on Chrome Performance Dashboard. Following the methodology of how Android Chrome creates resource size histograms (in //build/android), the key parts are: * Target "resource_sizes_lacros_chrome" to create wrapper script in $OUT_DIR/bin for the main script. This will be called by build bots (hook to be added in follow-up). * lacros_resource_sizes.py to read Lacros build artifact sizes, and to export the result to histogram JSON files. lacros_resource_sizes.py is specialized for Lacros to simplify code. The script accounts for each file in the ZIP file created by the chromeos-amd64-generic-lacros-rel builder, but files can be aggregated by a list and/or by directories. Changes in ZIP file content will require updates to lacros_resource_sizes.py for proper size accounting. Bug: 1106626 Change-Id: I9e42eeb2d54105b47fe37730ba098256bd67de54 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346910Reviewed-by:
Samuel Huang <huangs@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@google.com> Reviewed-by:
Erik Chen <erikchen@chromium.org> Reviewed-by:
Andrew Grieve <agrieve@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#798187}
e65eb3f1