Registers a hook for mutex contention profiling.
Declared in <absl/synchronization/mutex.h>
void
RegisterMutexProfiler(void(* fn)(int64_t));
Only a single profiler can be installed in a running binary.
| Name | Description |
|---|---|
| fn | Callback invoked with the number of wait cycles on contention. |