• Samuel Huang's avatar
    [Lacros] Add bottom-most part of pipeline to monitor Lacros binary / resource sizes. · e65eb3f1
    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: default avatarSamuel Huang <huangs@chromium.org>
    Reviewed-by: default avatarDirk Pranke <dpranke@google.com>
    Reviewed-by: default avatarErik Chen <erikchen@chromium.org>
    Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Commit-Queue: Samuel Huang <huangs@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#798187}
    e65eb3f1
lacros_resource_sizes.gni 733 Bytes