Skip to content
Snippets Groups Projects
Commit 721670be authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Ravenwood] Add timestamp to stats CSV" into main

parents f5362cff e3cc5d59
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment