diff options
Diffstat (limited to 'runtime/trace.h')
| -rw-r--r-- | runtime/trace.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/trace.h b/runtime/trace.h index d7836b8965..45a02dab3c 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -68,6 +68,8 @@ class Trace FINAL : public instrumentation::InstrumentationListener {    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 @@ class Trace FINAL : public instrumentation::InstrumentationListener {    // Time trace was created.    const uint64_t start_time_; +  // Clock overhead. +  const uint32_t clock_overhead_ns_; +    // Offset into buf_.    AtomicInteger cur_offset_;  |