diff options
author | 2018-02-15 17:47:29 +0000 | |
---|---|---|
committer | 2018-02-21 12:57:12 +0000 | |
commit | 440a9b3b3e6aa60c14e73a97dd85c9ada0898569 (patch) | |
tree | 26dcc48d91e3eec18ab1e4dd987962a0939f6531 /compiler/optimizing/optimizing_compiler.cc | |
parent | d1652d14fbf477b3091eec3764b9890f2c072055 (diff) |
Add timestamps to JIT/DEX native debug info.
This a forward-looking change intended to allow simpleperf to
reliably correlate samples and native debug information.
I have added the timestamps to both JIT and DEX, and refactored
the code in the process to avoid code duplication.
Test: testrunner.py -t 137
Change-Id: I45fa4310305aff540e036db9af15a86c5b8b7aff
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index b3f23a0dcd..e42dfc10ba 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1411,13 +1411,12 @@ void OptimizingCompiler::GenerateJitDebugInfo(ArtMethod* method, debug::MethodDe mini_debug_info, ArrayRef<const debug::MethodDebugInfo>(&info, 1)); MutexLock mu(Thread::Current(), *Locks::native_debug_interface_lock_); - JITCodeEntry* entry = CreateJITCodeEntry(elf_file); - IncrementJITCodeEntryRefcount(entry, info.code_address); + AddNativeDebugInfoForJit(reinterpret_cast<const void*>(info.code_address), elf_file); VLOG(jit) << "JIT mini-debug-info added for " << ArtMethod::PrettyMethod(method) << " size=" << PrettySize(elf_file.size()) - << " total_size=" << PrettySize(GetJITCodeEntryMemUsage()); + << " total_size=" << PrettySize(GetJitNativeDebugInfoMemUsage()); } } // namespace art |