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

Definition at line 223 of file hashtablez_sampler.h.

Constructor & Destructor Documentation

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

Definition at line 145 of file hashtablez_sampler.cc.

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

Definition at line 151 of file hashtablez_sampler.cc.

Member Function Documentation

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

Definition at line 114 of file hashtablez_sampler.cc.

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

Definition at line 217 of file hashtablez_sampler.cc.

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

Definition at line 179 of file hashtablez_sampler.cc.

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

Definition at line 168 of file hashtablez_sampler.cc.

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

Definition at line 160 of file hashtablez_sampler.cc.

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

Definition at line 194 of file hashtablez_sampler.cc.

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

Definition at line 119 of file hashtablez_sampler.cc.

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

Definition at line 212 of file hashtablez_sampler.cc.

Member Data Documentation

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

Definition at line 263 of file hashtablez_sampler.h.

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

Definition at line 266 of file hashtablez_sampler.h.

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

Definition at line 235 of file hashtablez_sampler.h.

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

Definition at line 264 of file hashtablez_sampler.h.

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 Wed Jun 19 2019 19:19:59