diff options
| -rwxr-xr-x | ravenwood/scripts/ravenwood-stats-collector.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ravenwood/scripts/ravenwood-stats-collector.sh b/ravenwood/scripts/ravenwood-stats-collector.sh index beacde282d49..cf58bd2f3717 100755 --- a/ravenwood/scripts/ravenwood-stats-collector.sh +++ b/ravenwood/scripts/ravenwood-stats-collector.sh @@ -24,6 +24,8 @@ apis=/tmp/ravenwood-apis-all.csv # Where the input files are. path=$ANDROID_BUILD_TOP/out/host/linux-x86/testcases/ravenwood-stats-checker/x86_64/ +timestamp="$(date --iso-8601=seconds)" + m() { ${ANDROID_BUILD_TOP}/build/soong/soong_ui.bash --make-mode "$@" } @@ -39,15 +41,15 @@ dump() { local jar=$1 local file=$2 - # Use sed to remove the header + prepend the jar filename. - sed -e '1d' -e "s/^/$jar,/" $file + # Remove the header row, and prepend the columns. + sed -e '1d' -e "s/^/$jar,$timestamp,/" $file } collect_stats() { local out="$1" { # Copy the header, with the first column appended. - echo -n "Jar," + echo -n "Jar,Generated Date," head -n 1 hoststubgen_framework-minus-apex_stats.csv dump "framework-minus-apex" hoststubgen_framework-minus-apex_stats.csv @@ -61,7 +63,7 @@ collect_apis() { local out="$1" { # Copy the header, with the first column appended. - echo -n "Jar," + echo -n "Jar,Generated Date," head -n 1 hoststubgen_framework-minus-apex_apis.csv dump "framework-minus-apex" hoststubgen_framework-minus-apex_apis.csv |