commit | d412d7b98649ce9bd84b4ef733030316c976f5c1 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Fri Jul 07 14:03:08 2017 -0700 |
committer | Andreas Gampe <agampe@google.com> | Fri Jul 07 21:14:12 2017 -0700 |
tree | 1dd61563b9b3a89f46a3cb5d4e267aad8e8bcfaa | |
parent | d236626aad8a11a0ced55b3e0c2a7411bcd9b810 [diff] |
ART: Presize output vector in RecentAllocations Reserve the needed storage for each allocation record before dumping the data to avoid incremental increases. Effect on b/37620770 repro case: Dump time ~ 12s (cherry picked from commit d0fc768defcc417393d4ef5a25214b566bfc36c2) Bug: 37620770 Test: m test-art-host Merged-In: I24f46786c9cf15e6523389c630952eff0981f4dc Change-Id: I24f46786c9cf15e6523389c630952eff0981f4dc