blob: 6dcc1616405a0ec8e2f3efd5034e6e8a9666439f [file] [log] [blame]
#!/bin/bash
set -e
# This is a helper script to be called by androidx.sh
# This script asks parse_profile_html.py to parse the appropriate report html files
cd "$(dirname $0)"
if [ "$DIST_DIR" == "" ]; then
DIST_DIR=../../../../out/dist
fi
METRICS_DIR="$DIST_DIR/librarymetrics/build"
./parse_profile_html.py --input-profile "$(ls ../../../../out/androidx/build/reports/profile/*.html | sort | tail -n 2 | head -n 1)" --output-summary $METRICS_DIR/build_androidx.json
./parse_profile_html.py --input-profile "$(ls ../../../../out/ui/ui/build/reports/profile/*.html | sort | tail -n 2 | head -n 1)" --output-summary $METRICS_DIR/build_ui.json