Go to the documentation of this file.
15 #ifndef ABSL_PROFILING_INTERNAL_PERIODIC_SAMPLER_H_
16 #define ABSL_PROFILING_INTERNAL_PERIODIC_SAMPLER_H_
22 #include "absl/base/optimization.h"
27 namespace profiling_internal {
47 inline bool Sample() noexcept;
113 virtual int period()
const noexcept = 0;
183 template <
typename Tag,
int default_period = 0>
189 return period_.load(std::memory_order_relaxed);
204 template <
typename Tag,
int default_period>
211 #endif // ABSL_PROFILING_INTERNAL_PERIODIC_SAMPLER_H_
#define ABSL_PREDICT_FALSE(x)
bool SubtleMaybeSample() noexcept
static std::atomic< int > period_
#define ABSL_NAMESPACE_END
PeriodicSamplerBase()=default
#define ABSL_NAMESPACE_BEGIN
unsigned __int64 uint64_t
virtual int period() const noexcept=0
virtual int64_t GetExponentialBiased(int period) noexcept
#define ABSL_PREDICT_TRUE(x)
~PeriodicSamplerBase()=default
int period() const noexcept final
bool SubtleConfirmSample() noexcept
absl::profiling_internal::ExponentialBiased rng_
static void SetGlobalPeriod(int period)
~PeriodicSampler()=default
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:42