From 440a9b3b3e6aa60c14e73a97dd85c9ada0898569 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 15 Feb 2018 17:47:29 +0000 Subject: 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 --- runtime/class_linker.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/class_linker.cc') diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index c4b1bf8637..f7bd45a480 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -3433,7 +3433,8 @@ void ClassLinker::RegisterDexFileLocked(const DexFile& dex_file, data.weak_root = dex_cache_jweak; data.dex_file = dex_cache->GetDexFile(); data.class_table = ClassTableForClassLoader(class_loader); - RegisterDexFileForNative(self, data.dex_file->Begin()); + AddNativeDebugInfoForDex(self, ArrayRef(data.dex_file->Begin(), + data.dex_file->Size())); DCHECK(data.class_table != nullptr); // Make sure to hold the dex cache live in the class table. This case happens for the boot class // path dex caches without an image. -- cgit v1.2.3-59-g8ed1b