OSDN Git Service

dex2oat: Show memory usage values in bytes
authorAnton Kirilov <anton.kirilov@linaro.org>
Thu, 28 Jan 2016 15:08:01 +0000 (15:08 +0000)
committerAnton Kirilov <anton.kirilov@linaro.org>
Mon, 15 Feb 2016 11:49:08 +0000 (11:49 +0000)
commitdd9473b94c15c8cbdfcce702fdc7a50acdfbfd8b
tree055dfa192732d8a2f246b314c66230e145355c14
parent88f4bc504c1be353e95e9d215d68c7d58eb0717f
dex2oat: Show memory usage values in bytes

Memory usage values are rounded down to an integer and shown in the
unit that would be most appropriate (refer to art::PrettySize());
e.g. if the value is at least 1 MB, but less than 1 GB, then it will
be shown in MB. However, that can introduce a very large error; for
example, a value that is close to, but less than 2 MB, will be
displayed as 1 MB.

This change forces dex2oat to print the raw value in bytes as well,
which may make memory usage analysis more accurate.

Change-Id: Id86a9fe21e8af0f02e77fac21cad51d35d941294
compiler/driver/compiled_method_storage.cc
compiler/driver/compiler_driver.cc