template <typename T>

class SampleRecorder

Defined at line 57 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

Holds samples and their associated stack traces with a soft limit of

`SetHashtablezMaxSamples()`.

Thread safe.

Public Methods

void SampleRecorder<T> ()

Defined at line 130 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

void ~SampleRecorder<T> ()

Defined at line 137 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

template <typename... Targs>
T * Register (Targs &&... args)

Registers for sampling. Returns an opaque registration info.

Defined at line 186 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

void Unregister (T * sample)

Unregisters the sample.

Defined at line 218 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

DisposeCallback SetDisposeCallback (DisposeCallback f)

Defined at line 124 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

int64_t Iterate (const std::function<void (const T &)> & f)

Iterates over all the registered `StackInfo`s. Returning the number of

samples that have been dropped.

Defined at line 224 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

size_t GetMaxSamples ()

Defined at line 244 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h

void SetMaxSamples (size_t max)

Defined at line 239 of file ../../third_party/abseil-cpp/absl/profiling/internal/sample_recorder.h