commit | 8eed91ff4c8d546248311b8843036efb82bac913 | [log] [tgz] |
---|---|---|
author | Pierre-Yves Ricau <py@squareup.com> | Thu Sep 05 20:38:17 2019 |
committer | Pierre-Yves Ricau <py@squareup.com> | Mon Sep 09 22:11:37 2019 |
tree | b9284728422bb417684a60b3cb57ae0b44ab9360 | |
parent | 77f8d570e5e5380f1af0aecd4299ec0f05154207 [diff] |
Improve FieldValuesReader performance FieldValuesReader used to wrap Reader which does a map concatenation on every new instance. This change turns FieldValuesReader into a dedicated class for fields. FieldValuesReader can be called for every object in the heap dump so that's a lot. Method tracing showed a reduction from ~9% of total analysis time to 0.9% when running ProfiledTest#analyzeLargeDump
A memory leak detection library for Android.
Copyright 2015 Square, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.