summaryrefslogtreecommitdiff
path: root/runtime/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/trace.h')
-rw-r--r--runtime/trace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/trace.h b/runtime/trace.h
index baa8e20259..b2012ed8e6 100644
--- a/runtime/trace.h
+++ b/runtime/trace.h
@@ -422,6 +422,11 @@ class Trace final : public instrumentation::InstrumentationListener, public Clas
static void FlushThreadBuffer(Thread* thread) REQUIRES_SHARED(Locks::mutator_lock_)
REQUIRES(!Locks::trace_lock_) NO_THREAD_SAFETY_ANALYSIS;
+ // Removes any listeners installed for method tracing. This is used in non-streaming case
+ // when we no longer record any events once the buffer is full. In other cases listeners are
+ // removed only when tracing stops. This is expected to be called in SuspendAll scope.
+ static void RemoveListeners() REQUIRES(Locks::mutator_lock_);
+
void MeasureClockOverhead();
uint32_t GetClockOverheadNanoSeconds();