aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duraj <julien.duraj@linaro.org>2018-06-25 12:49:02 +0100
committerJulien Duraj <julien.duraj@linaro.org>2018-06-25 14:58:14 +0100
commit6076d09a9c73a814a33c3c421fb6c7cddf87e295 (patch)
tree39fa74ec1042d9755ad05627ab11f33ad77a561a
parentb93c43fcd7d375b7998cd63f22283d28eba5e7ad (diff)
downloadart-testing-6076d09a9c73a814a33c3c421fb6c7cddf87e295.tar.gz
boot.oat stats: FileSize value must be an array
art-reports will reject the json with error 500 if we provide the integer directly, we must wrap it into an array. Test: benchmarks/run.py --add-pathname <path/to/boot.oat> Change-Id: Iba132897ab3a207a8ef20ca81b7c7a5ea7d16b96
-rwxr-xr-xtools/compilation_statistics/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/compilation_statistics/run.py b/tools/compilation_statistics/run.py
index a1eb040..23fa91b 100755
--- a/tools/compilation_statistics/run.py
+++ b/tools/compilation_statistics/run.py
@@ -300,7 +300,7 @@ def GetLocalOatSizeStats(oat_path):
# Add total file size in bytes.
command = ['stat', '-c', '%s', oat_path]
rc, outerr = utils.Command(command)
- section_sizes['FileSize'] = int(outerr)
+ section_sizes['FileSize'] = [int(outerr)]
return OrderedDict([(utils.oat_size_label, section_sizes)])
if __name__ == "__main__":