blob: 51d42003d480a54844178645a30f05ebf0293493 [file] [log] [blame]
Tamas Kenez0e10c562017-06-08 10:00:34 +02001#!/bin/bash
2#
3# Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
4# for details. All rights reserved. Use of this source code is governed by a
5# BSD-style license that can be found in the LICENSE file.
6
7# Compile AOSP jars with D8 (CompatDX) and print the code size in bytes
8
9set -e
10
11readonly DX_REPLAY="third_party/android_cts_baseline/dx_replay"
12
13"${DX_REPLAY}/replay_script.py" \
14 java -jar "build/libs/compatdx.jar" >/dev/null
15
16codesize=$(du -b -d 0 "third_party/android_cts_baseline/dx_replay/out" \
17 | grep -Eo "^[0-9]+")
18
19echo "Aosp(CodeSize): $codesize"
20
21