21 stats->
logInit(100, 30.0, 128000.0);
95 ses <<
"\n\n\nThese statistics are experimental; their format and contents "
96 "should not be relied upon, they are bound to change as "
97 "the SBuf feature is evolved\n";
101 ses <<
"SBuf size distribution at destruct time:\n";
103 ses <<
"MemBlob capacity distribution at destruct time:\n";
static StatHist & collectMemBlobDestructTimeStats()
the MemBlob size-at-destruct-time histogram
static StatHist * makeDestructTimeHist()
creates a new size-at-destruct-time histogram
static StatHist & collectSBufDestructTimeStats()
the SBuf size-at-destruct-time histogram
static void statHistSBufDumper(StoreEntry *sentry, int, double val, double size, int count)
static void recordSBufSizeAtDestruct(const size_t sz)
record the size an SBuf had when it was destructed
static void recordMemBlobSizeAtDestruct(const size_t sz)
record the size a MemBlob had when it was destructed
struct msghdr with a known type, fixed-size I/O and control buffers
void getPod(Pod &pod) const
load POD
void checkType(int aType) const
void putPod(const Pod &pod)
store POD
void setType(int aType)
sets message type; use MessageType enum
std::ostream & dump(std::ostream &os) const
dumps class-wide statistics
static const MemBlobStats & GetStats()
obtain a const view of class-wide statistics
const CommandPointer cmd
the command that caused this action
SBufStatsAction(const Mgr::CommandPointer &cmd)
void add(const Mgr::Action &action) override
incrementally merge in remote information (of the same action type)
StatHist sbsizesatdestruct
void unpack(const Ipc::TypedMsgHdr &msg) override
unpack action info from the message received by Coordinator
static void RegisterWithCacheManager(void)
void pack(Ipc::TypedMsgHdr &msg) const override
pack collected action info into a message to be sent to Coordinator
void collect() override
calculate and keep local action-specific information
StatHist mbsizesatdestruct
static Pointer Create(const Mgr::CommandPointer &cmd)
Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
void dump(StoreEntry *entry) override
std::ostream & dump(std::ostream &os) const
Dump statistics to an ostream.
static SizeRecorder SBufSizeAtDestructRecorder
collects statistics about SBuf sizes at SBuf destruction time
static SizeRecorder MemBlobSizeAtDestructRecorder
collects statistics about MemBlob capacity at MemBlob destruction time
static const SBufStats & GetStats()
gets global statistic information
void logInit(unsigned int capacity, double min, double max)
void dump(StoreEntry *sentry, StatHistBinDumper *bd) const
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
void storeAppendPrintf(StoreEntry *e, const char *fmt,...)