OSDN Git Service

Save profile information in a separate thread.
authorCalin Juravle <calin@google.com>
Tue, 1 Dec 2015 18:38:09 +0000 (18:38 +0000)
committerCalin Juravle <calin@google.com>
Thu, 24 Dec 2015 10:02:12 +0000 (12:02 +0200)
commit4d77b6a511659f26fdc711e23825ffa6e7feed7a
tree7ac013467a20fcdf64cb6cf4c79a8ff67dc7690a
parent66f55237679db90cb0a0a265043a787932b466f8
Save profile information in a separate thread.

Previously we would save the profiling information only when the app
was sent to background. This missed on an important number of updates
on the jit code cache and it didn't work for background processes.

Bug: 26080105

Change-Id: I84075629870e69b3ed372f00f4806af1e9391e0f
15 files changed:
runtime/Android.mk
runtime/atomic.h
runtime/jit/jit.cc
runtime/jit/jit.h
runtime/jit/jit_code_cache.cc
runtime/jit/jit_code_cache.h
runtime/jit/offline_profiling_info.cc
runtime/jit/offline_profiling_info.h
runtime/jit/profile_saver.cc [new file with mode: 0644]
runtime/jit/profile_saver.h [new file with mode: 0644]
runtime/native/dalvik_system_VMRuntime.cc
runtime/runtime.cc
runtime/runtime.h
runtime/utils.cc
runtime/utils.h