diff options
author | 2017-01-30 19:30:44 -0800 | |
---|---|---|
committer | 2017-02-16 13:52:56 -0800 | |
commit | 940eb0c00ef531dd9a0a68dbd61e377832e81eb4 (patch) | |
tree | c65e43a702bb781b7a2f4ebedfb6b3d131fd8312 /runtime/jit/jit_code_cache.h | |
parent | 9fb10fb39bcb3d9a4dc7e16f8c1d38dcc112639c (diff) |
Add inline caches to offline profiles
Add support for inline caches in profiles:
- extract inline caches from the jit cache when the profile saver
queries the hot methods
- bump profile version to support the new data
- add new tests
- inline caches are only supported for same-apk calls (including
multidex)
Test: m art-test-host-gtest-profile_compilation_info_test
Bug: 32434870
Change-Id: I38b4ca0a54568d2224765ff76023baef1b8fd1a2
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r-- | runtime/jit/jit_code_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index b5e31769ab..33a792fe75 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -30,6 +30,7 @@ #include "method_reference.h" #include "oat_file.h" #include "object_callbacks.h" +#include "profile_compilation_info.h" #include "safe_map.h" #include "thread_pool.h" @@ -192,7 +193,7 @@ class JitCodeCache { // Adds to `methods` all profiled methods which are part of any of the given dex locations. void GetProfiledMethods(const std::set<std::string>& dex_base_locations, - std::vector<MethodReference>& methods) + std::vector<ProfileMethodInfo>& methods) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); |