OSDN Git Service

Tweak ProfileSaver saving strategy
authorCalin Juravle <calin@google.com>
Wed, 15 Mar 2017 00:58:21 +0000 (17:58 -0700)
committerCalin Juravle <calin@google.com>
Wed, 15 Mar 2017 23:18:33 +0000 (16:18 -0700)
commit51e417b45fa13050318715d2ad3da99d90b5f334
treee32464e15dbce92747a0383d11498ec5d9b309b9
parent13ef0447b43ecbf18d3c4e4c72d66bbbc1815f0c
Tweak ProfileSaver saving strategy

To minimize the I/O, we used to store the number of methods/classes we
last saved globally in the profiler saver. This is no longer viable once
we want to track secondary dex files for profiling because each file
might save a different set of methods.

To make sure we do not miss data for secondary dex profiles,
store the number of last saved methods separetely for each profile file.

Test: test-art-host
Bug: 26719109
Change-Id: I3a657f63d26f68c7ca83a754f6e4aa2c9d946176
runtime/jit/profile_saver.cc
runtime/jit/profile_saver.h