Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
absl::container_internal::HashtablezSampler Class Reference

#include <hashtablez_sampler.h>

Public Types

using DisposeCallback = void(*)(const HashtablezInfo &)
 

Public Member Functions

 HashtablezSampler ()
 
int64_t Iterate (const std::function< void(const HashtablezInfo &stack)> &f)
 
HashtablezInfoRegister ()
 
DisposeCallback SetDisposeCallback (DisposeCallback f)
 
void Unregister (HashtablezInfo *sample)
 
 ~HashtablezSampler ()
 

Static Public Member Functions

static HashtablezSamplerGlobal ()
 

Private Member Functions

HashtablezInfoPopDead ()
 
void PushDead (HashtablezInfo *sample)
 
void PushNew (HashtablezInfo *sample)
 

Private Attributes

std::atomic< HashtablezInfo * > all_
 
std::atomic< DisposeCallbackdispose_
 
std::atomic< size_t > dropped_samples_
 
HashtablezInfo graveyard_
 
std::atomic< size_t > size_estimate_
 

Detailed Description

Definition at line 205 of file hashtablez_sampler.h.

Member Typedef Documentation

◆ DisposeCallback

Definition at line 223 of file hashtablez_sampler.h.

Constructor & Destructor Documentation

◆ HashtablezSampler()

absl::container_internal::HashtablezSampler::HashtablezSampler ( )

Definition at line 145 of file hashtablez_sampler.cc.

◆ ~HashtablezSampler()

absl::container_internal::HashtablezSampler::~HashtablezSampler ( )

Definition at line 151 of file hashtablez_sampler.cc.

Member Function Documentation

◆ Global()

HashtablezSampler & absl::container_internal::HashtablezSampler::Global ( )
static

Definition at line 114 of file hashtablez_sampler.cc.

◆ Iterate()

int64_t absl::container_internal::HashtablezSampler::Iterate ( const std::function< void(const HashtablezInfo &stack)> &  f)

Definition at line 217 of file hashtablez_sampler.cc.

◆ PopDead()

HashtablezInfo * absl::container_internal::HashtablezSampler::PopDead ( )
private

Definition at line 179 of file hashtablez_sampler.cc.

◆ PushDead()

void absl::container_internal::HashtablezSampler::PushDead ( HashtablezInfo sample)
private

Definition at line 168 of file hashtablez_sampler.cc.

◆ PushNew()

void absl::container_internal::HashtablezSampler::PushNew ( HashtablezInfo sample)
private

Definition at line 160 of file hashtablez_sampler.cc.

◆ Register()

HashtablezInfo * absl::container_internal::HashtablezSampler::Register ( )

Definition at line 194 of file hashtablez_sampler.cc.

◆ SetDisposeCallback()

HashtablezSampler::DisposeCallback absl::container_internal::HashtablezSampler::SetDisposeCallback ( DisposeCallback  f)

Definition at line 119 of file hashtablez_sampler.cc.

◆ Unregister()

void absl::container_internal::HashtablezSampler::Unregister ( HashtablezInfo sample)

Definition at line 212 of file hashtablez_sampler.cc.

Member Data Documentation

◆ all_

std::atomic<HashtablezInfo*> absl::container_internal::HashtablezSampler::all_
private

Definition at line 263 of file hashtablez_sampler.h.

◆ dispose_

std::atomic<DisposeCallback> absl::container_internal::HashtablezSampler::dispose_
private

Definition at line 266 of file hashtablez_sampler.h.

◆ dropped_samples_

std::atomic<size_t> absl::container_internal::HashtablezSampler::dropped_samples_
private

Definition at line 235 of file hashtablez_sampler.h.

◆ graveyard_

HashtablezInfo absl::container_internal::HashtablezSampler::graveyard_
private

Definition at line 264 of file hashtablez_sampler.h.

◆ size_estimate_

std::atomic<size_t> absl::container_internal::HashtablezSampler::size_estimate_
private

Definition at line 236 of file hashtablez_sampler.h.


The documentation for this class was generated from the following files:


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22