proxygen
|
#include <BufferedStat.h>
Public Types | |
using | TimePoint = typename ClockT::time_point |
Public Types inherited from folly::detail::BufferedStat< DigestT, ClockT > | |
using | TimePoint = typename ClockT::time_point |
Public Member Functions | |
BufferedDigest (typename ClockT::duration bufferDuration, size_t bufferSize, size_t digestSize) | |
DigestT | get (TimePoint now=ClockT::now()) |
void | onNewDigest (DigestT digest, TimePoint newExpiry, TimePoint oldExpiry, const std::unique_lock< SharedMutex > &g) final |
Public Member Functions inherited from folly::detail::BufferedStat< DigestT, ClockT > | |
BufferedStat ()=delete | |
BufferedStat (typename ClockT::duration bufferDuration, size_t bufferSize, size_t digestSize) | |
virtual | ~BufferedStat () |
void | append (double value, TimePoint now=ClockT::now()) |
void | flush () |
Private Attributes | |
DigestT | digest_ |
Additional Inherited Members | |
Protected Member Functions inherited from folly::detail::BufferedStat< DigestT, ClockT > | |
std::unique_lock< SharedMutex > | updateIfExpired (TimePoint now) |
std::unique_lock< SharedMutex > | update () |
Protected Attributes inherited from folly::detail::BufferedStat< DigestT, ClockT > | |
const ClockT::duration | bufferDuration_ |
std::atomic< TimePointHolder > | expiry_ |
SharedMutex | mutex_ |
Definition at line 100 of file BufferedStat.h.
using folly::detail::BufferedDigest< DigestT, ClockT >::TimePoint = typename ClockT::time_point |
Definition at line 102 of file BufferedStat.h.
folly::detail::BufferedDigest< DigestT, ClockT >::BufferedDigest | ( | typename ClockT::duration | bufferDuration, |
size_t | bufferSize, | ||
size_t | digestSize | ||
) |
Definition at line 88 of file BufferedStat-defs.h.
DigestT folly::detail::BufferedDigest< DigestT, ClockT >::get | ( | TimePoint | now = ClockT::now() | ) |
Definition at line 96 of file BufferedStat-defs.h.
References folly::detail::BufferedDigest< DigestT, ClockT >::digest_, g(), and folly::detail::BufferedStat< DigestT, ClockT >::updateIfExpired().
|
finalvirtual |
Implements folly::detail::BufferedStat< DigestT, ClockT >.
Definition at line 102 of file BufferedStat-defs.h.
References a, folly::detail::BufferedDigest< DigestT, ClockT >::digest_, merge(), and folly::gen::move.
|
private |
Definition at line 118 of file BufferedStat.h.
Referenced by folly::detail::BufferedDigest< DigestT, ClockT >::get(), and folly::detail::BufferedDigest< DigestT, ClockT >::onNewDigest().