Stop thread from reattaching during runtime shutdown while tracing.

Bug: 16024763
Change-Id: Iad5ba180241ff74b15baf5c3a15ed2d2ed60fcf0
diff --git a/runtime/trace.h b/runtime/trace.h
index d7836b8..45a02da 100644
--- a/runtime/trace.h
+++ b/runtime/trace.h
@@ -68,6 +68,8 @@
 
   bool UseWallClock();
   bool UseThreadCpuClock();
+  void MeasureClockOverhead();
+  uint32_t GetClockOverheadNanoSeconds();
 
   void CompareAndUpdateStackTrace(Thread* thread, std::vector<mirror::ArtMethod*>* stack_trace)
       SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
@@ -155,6 +157,9 @@
   // Time trace was created.
   const uint64_t start_time_;
 
+  // Clock overhead.
+  const uint32_t clock_overhead_ns_;
+
   // Offset into buf_.
   AtomicInteger cur_offset_;