Do not cache profiles in the ProfileSaver.
Profiles with a lot of inline caches have a large memory
footprint. Do not cache them in the saver anymore.
The cache was useful to avoid doing unnecessary IO but it
takes too much memory now. Disable it until we update the
profile format to take less space.
This trades off IO for memory. As an effect we will do one extra
read to detect if we have enough new information worth saving. The
saving period has been increased to 40secs (from 20) in a previous
CL which also helps to balance the IO.
Test: m test-art-host-gtest
manual inspection with meminfo
Bug: 37711886
(cherry picked from commit ea220658bf6ff920c5a6c658e4643da09560d278)
Change-Id: Iddf93b2f07faf4c897ac43931f41aa1e8c2a6bc4
5 files changed