diff options
author | Julien Duraj <julien.duraj@linaro.org> | 2018-06-25 12:49:02 +0100 |
---|---|---|
committer | Julien Duraj <julien.duraj@linaro.org> | 2018-06-25 14:58:14 +0100 |
commit | 6076d09a9c73a814a33c3c421fb6c7cddf87e295 (patch) | |
tree | 39fa74ec1042d9755ad05627ab11f33ad77a561a | |
parent | b93c43fcd7d375b7998cd63f22283d28eba5e7ad (diff) | |
download | art-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-x | tools/compilation_statistics/run.py | 2 |
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__": |