old_api.cc
Go to the documentation of this file.
144 stream << "\t " << xpercentInt(plevel * pool.objectSize, StrVolumeMeter.currentLevel()) << "\n";
152 stream << xpercentInt(StrCountMeter.currentLevel() - pooled_count, StrCountMeter.currentLevel()) << "\t ";
153 stream << xpercentInt(StrVolumeMeter.currentLevel() - pooled_volume, StrVolumeMeter.currentLevel()) << "\n\n";
417 debugs(13, DBG_IMPORTANT, "memory_pools_limit 0 has been chagned to memory_pools_limit none. Please update your config");
631 stream << std::setprecision(3) << xpercent(mp_st->obj_size * pm->alloc.currentLevel(), AllMeter->alloc.currentLevel()) << delim;
637 stream << std::setprecision(3) << xpercent(pm->inuse.currentLevel(), pm->alloc.currentLevel()) << delim;
644 stream << std::setprecision(3) << xpercent(pm->gb_saved.count, AllMeter->gb_allocated.count) << delim;
645 stream << std::setprecision(3) << xpercent(pm->gb_saved.bytes, AllMeter->gb_allocated.bytes) << delim;
646 stream << std::setprecision(3) << xdiv(pm->gb_allocated.count - pm->gb_oallocated.count, xm_deltat) << "\n";
699 return (double(a.obj_size) * a.meter->alloc.currentLevel()) > (double(b.obj_size) * b.meter->alloc.currentLevel());
709 stream << "Cumulative allocated volume: "<< double_to_str(buf, 64, mp_total.meter->gb_allocated.bytes) << "\n";
712 std::setprecision(3) << xpercent(mp_total.overhead, mp_total.meter->inuse.currentLevel()) << "%)\n";
715 stream << "Idle pool limit: " << std::setprecision(2) << toMB(MemPools::GetInstance().idleLimit()) << " MB\n";
Definition: Allocator.h:22
static size_t RoundedSize(const size_t minSize)
Definition: Allocator.h:93
int getInUseCount() const
the difference between the number of alloc() and freeOne() calls
Definition: Allocator.h:59
virtual void setChunkSize(size_t)
XXX: Misplaced – not all allocators have a notion of a "chunk". See MemPoolChunked.
Definition: Allocator.h:65
void * alloc()
provide (and reserve) memory suitable for storing one object
Definition: Allocator.h:44
Definition: Meter.h:21
Definition: Meter.h:55
Definition: Stats.h:18
Definition: PackableStream.h:76
struct SquidConfig::@111 MemPools
struct SquidConfig::@106 onoff
Definition: Store.h:42
Definition: fs_io.h:22
Definition: fs_io.h:35
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
void PoolReport(const PoolStats *, const PoolMeter *, std::ostream &)
Definition: old_api.cc:581
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
class Ping::pingStats_ stats
static mem_type memFindBufSizeType(size_t net_size, size_t *gross_size)
Definition: old_api.cc:308
void * memReallocBuf(void *oldbuf, size_t net_size, size_t *gross_size)
Definition: old_api.cc:359
void * memAllocate(mem_type type)
Allocate one element from the typed pool.
Definition: old_api.cc:213
static Mem::Allocator * memFindStringPool(size_t net_size, bool fuzzy)
Definition: old_api.cc:117
void memDataInit(mem_type type, const char *name, size_t size, int, bool doZero)
Definition: old_api.cc:200
Definition: old_api.cc:47
double current_dtime
the current UNIX time in seconds (with microsecond precision)
Definition: stub_libtime.cc:19
SQUIDCEXTERN const char * double_to_str(char *buf, int buf_size, double value)
Definition: util.c:90