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
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index c4b1bf8..f7bd45a 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -3433,7 +3433,8 @@
   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<const uint8_t>(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.