summaryrefslogtreecommitdiff
path: root/test/MultiDex/main.jpp
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-06-08 10:35:20 -0700
committerMathieu Chartier <mathieuc@google.com>2017-06-09 11:45:10 -0700
commitfaf8320e7b3a72d79876ff76d88a6b88740b8c02 (patch)
treeb46372ecb22f7c9f813a24f787788a4caead713e /test/MultiDex/main.jpp
parent58794c5c23f46a7476a58e5a10dbeebb6321aa90 (diff)
Optimize FetchAndCacheResolvedClassesAndMethods
Moved FetchAndCacheResolvedClassesAndMethods to use a newly added memory efficient DexReferenceCollection. This reduces RAM by 6+ bytes per sampled method during the process. Changed profile logic to use bulk adding for each dex file instead of looping through all of the ids and doing a string map comparison for each one. Also moved the vectors to use arena allocators to make sure the pages get released after sampling is done. Time in FetchAndCacheResolvedClassesAndMethods for Maps goes from 90.4ms to 47ms (average of 5 samples). The motivation is to improve this call since it will be called more often for sampling post startup methods. Test: test-art-host Test: manually look at -verbose:profiler output Bug: 36457259 Change-Id: I3ed647ae15900c96d2180eb5c799f45393794dda
Diffstat (limited to 'test/MultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions