cbdata.cc
Go to the documentation of this file.
41 CBDataCall (char const *callLabel, char const *aFile, int aLine) : label(callLabel), file(aFile), line(aLine) {}
125 static_assert(std::is_standard_layout<cbdata>::value, "the behavior of offsetof(cbdata) is defined");
385 debugs(45, 3, "CBDATA valid with no references ... cbdata=" << p << " " << file << ":" << line);
487 storeAppendPrintf(sentry, "%s\t%d\t%ld\t%ld\n", pool->objectType() + 7, obj_size, (long int)pool->getMeter().inuse.currentLevel(), (long int)obj_size * pool->getMeter().inuse.currentLevel());
492 storeAppendPrintf(sentry, "detailed allocation information only available when compiled with --enable-debug-cbdata\n");
496 storeAppendPrintf(sentry, "\nsee also \"Memory utilization\" for detailed per type statistics\n");
525 CBDataHistoryDumper(StoreEntry *anEntry):CBDataDumper(anEntry),where(anEntry), callDumper(anEntry) {}
int cbdataInternalReferenceDoneValid(void **pp, void **tp)
Definition: cbdata.cc:418
cbdata_type cbdataInternalAddType(cbdata_type type, const char *name, int size)
Definition: cbdata.cc:196
struct CBDataIndex * cbdata_index
static void cbdataInternalInitType(cbdata_type type, const char *name, int size)
Definition: cbdata.cc:175
Definition: cbdata.cc:60
Definition: Pool.h:179
void * cbdataInternalAlloc(cbdata_type type, const char *file, int line)
Definition: cbdata.cc:223
virtual MemPoolMeter const & getMeter() const =0
virtual void freeOne(void *)=0
Definition: Generic.h:17
MEMPROXY_CLASS(cbdata)
Definition: dlink.h:15
Definition: cbdata.cc:134
void * cbdataInternalFree(void *p, const char *file, int line)
Definition: cbdata.cc:301
static void cbdataRealFree(cbdata *c, const char *file, const int line)
Definition: cbdata.cc:264
Definition: dlink.h:24
Definition: Store.h:42
virtual void * alloc()=0
Definition: cbdata.h:359
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
virtual size_t objectSize() const =0