summaryrefslogtreecommitdiff
path: root/runtime/dex_reference_collection.h
AgeCommit message (Collapse)Author
2024-01-18Add visibility attributes in runtime/d* Dmitrii Ishcheikin
Bug: 260881207 Test: presubmit Test: abtd app_compat_drm Test: abtd app_compat_top_100 Test: abtd app_compat_banking Change-Id: I0fa27c33f27c118c6d1c28321a1c5be6d76d4fe0
2017-07-24ART: Include cleanup Andreas Gampe
Let clang-format reorder the header includes. Derived with: * .clang-format: BasedOnStyle: Google IncludeIsMainRegex: '(_test|-inl)?$' * Steps: find . -name '*.cc' -o -name '*.h' | xargs sed -i.bak -e 's/^#include/ #include/' ; git commit -a -m 'ART: Include cleanup' git-clang-format -style=file HEAD^ manual inspection git commit -a --amend Test: mmma art Change-Id: Ia963a8ce3ce5f96b5e78acd587e26908c7a70d02
2017-06-12Address review comments for aog/411660 Mathieu Chartier
Added test for bulk adding method apis. Test: test-art-host Change-Id: Ib5b8c73e572110bccbbab031c11f030c23545fba
2017-06-09Optimize FetchAndCacheResolvedClassesAndMethods Mathieu Chartier
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