Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gloop/base/tracer.h
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,14 @@ class Tracer {
cpu_profile_ticks_.fetch_add(ticks, std::memory_order_relaxed);
}

// Returns the total lock contention delay accumulated in this Tracer, if
// supported by the concrete tracer type.
virtual uint64_t lock_contention_delay_us() const { return 0; }

// Increments the lock contention delay by the specified number of
// microseconds, if supported by the concrete tracer type.
virtual void add_lock_contention_delay_us_safe(uint64_t delay_us) {}

// Registers a notification to be called just before this Tracer's final
// ref is released by the application.
//
Expand Down