Registers a hook for mutex contention profiling.

Synopsis

Declared in <absl/synchronization/mutex.h>

void
RegisterMutexProfiler(void(* fn)(int64_t));

Description

Only a single profiler can be installed in a running binary.

Parameters

Name

Description

fn

Callback invoked with the number of wait cycles on contention.

Created with MrDocs