summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex/Main.java
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2017-07-06 22:15:18 -0700
committerAndreas Gampe <agampe@google.com>2017-07-07 21:14:06 -0700
commitf9f9593b011eb40e697bd75c730c993f2531a75f (patch)
treed9687dd10ea5da0eaec1d6b870ec50e42895bfe1 /test/ProfileTestMultiDex/Main.java
parent0a4bf33338387372a2193f99e10c6824865581f2 (diff)
ART: Improve Dbg::GetRecentAllocations
Move ClassTable to const char* instead of std::string, and let it know when it needs to keep a copy of the string itself. This avoids lots of temporary allocations. Increase the stack depth in test 098 to better cover this behavior. Add allocations of proxies and arrays to cover the backing storage. Improvements on test 098: Before: heaptrack stats: allocations: 598174 leaked allocations: 186 temporary allocations: 132302 65797 calls to allocation functions with 3.34KB peak consumption from art::StringTable::Add(char const*) 65666 calls to allocation functions with 144B peak consumption from art::StringTable::IndexOf(char const*) const After: heaptrack stats: allocations: 466828 leaked allocations: 186 temporary allocations: 1002 (cherry picked from commit f774a4e5243b9b06f3c71ea9b67fc40b96a78342) Bug: 37620770 Test: m test-art-host Test: art/test/testrunner/testrunner.py -b --host -t 098 Test: SANITIZE_HOST=address art/test/testrunner/testrunner.py -b --host -t 098 Merged-In: Iee496c96471dbb825c22b2656598c95f7c029a2f Change-Id: Iee496c96471dbb825c22b2656598c95f7c029a2f
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions