stats: export mutex contention data (#4750)
Signed-off-by: James Buckland <jbuckland@google.com> Mirrored from https://github.com/envoyproxy/envoy @ 0287a6feb03e773ed8a15955536bb8285d0ae4a6pull/620/head
parent
26ae6e39fa
commit
94afbd7ca0
3 changed files with 31 additions and 0 deletions
@ -0,0 +1,24 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.admin.v2alpha; |
||||
|
||||
// [#protodoc-title: MutexStats] |
||||
|
||||
// Proto representation of the statistics collected upon absl::Mutex contention, if Envoy is run |
||||
// under :option:`--enable-mutex-tracing`. For more information, see the `absl::Mutex` |
||||
// [docs](https://abseil.io/about/design/mutex#extra-features). |
||||
// |
||||
// *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not |
||||
// correspond to core clock frequency. For more information, see the `CycleClock` |
||||
// [docs](https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h). |
||||
message MutexStats { |
||||
|
||||
// The number of individual mutex contentions which have occurred since startup. |
||||
uint64 num_contentions = 1; |
||||
|
||||
// The length of the current contention wait cycle. |
||||
uint64 current_wait_cycles = 2; |
||||
|
||||
// The lifetime total of all contention wait cycles. |
||||
uint64 lifetime_wait_cycles = 3; |
||||
} |
Loading…
Reference in new issue