old_api.cc
Go to the documentation of this file.
265 debugs(13, DBG_IMPORTANT, "memory_pools_limit 0 has been chagned to memory_pools_limit none. Please update your config");
528 stream << std::setprecision(3) << xpercent(mp_st->obj_size * pm->alloc.currentLevel(), AllMeter->alloc.currentLevel()) << delim;
534 stream << std::setprecision(3) << xpercent(pm->inuse.currentLevel(), pm->alloc.currentLevel()) << delim;
541 stream << std::setprecision(3) << xpercent(pm->gb_saved.count, AllMeter->gb_allocated.count) << delim;
542 stream << std::setprecision(3) << xpercent(pm->gb_saved.bytes, AllMeter->gb_allocated.bytes) << delim;
543 stream << std::setprecision(3) << xdiv(pm->gb_allocated.count - pm->gb_oallocated.count, xm_deltat) << "\n";
596 return (double(a.obj_size) * a.meter->alloc.currentLevel()) > (double(b.obj_size) * b.meter->alloc.currentLevel());
606 stream << "Cumulative allocated volume: "<< double_to_str(buf, 64, mp_total.meter->gb_allocated.bytes) << "\n";
609 std::setprecision(3) << xpercent(mp_total.overhead, mp_total.meter->inuse.currentLevel()) << "%)\n";
612 stream << "Idle pool limit: " << std::setprecision(2) << toMB(MemPools::GetInstance().idleLimit()) << " MB\n";
double current_dtime
the current UNIX time in seconds (with microsecond precision)
Definition: stub_libtime.cc:19
void * memAllocate(mem_type type)
Allocate one element from the typed pool.
Definition: old_api.cc:122
void PoolReport(const PoolStats *, const PoolMeter *, std::ostream &)
Definition: old_api.cc:478
Definition: Meter.h:54
void * alloc()
provide (and reserve) memory suitable for storing one object
Definition: Allocator.h:44
struct SquidConfig::@97 onoff
Definition: PackableStream.h:75
Definition: Meter.h:20
Definition: Allocator.h:21
struct SquidConfig::@102 MemPools
static mem_type memFindBufSizeType(size_t net_size, size_t *gross_size)
Definition: old_api.cc:138
static void memDataInit(mem_type type, const char *name, size_t size, int, bool doZero)
Definition: old_api.cc:109
int getInUseCount() const
the difference between the number of alloc() and freeOne() calls
Definition: Allocator.h:59
void * memReallocBuf(void *oldbuf, size_t net_size, size_t *gross_size)
Definition: old_api.cc:207
Definition: old_api.cc:47
Definition: Store.h:37
const char * double_to_str(char *buf, int buf_size, double value)
Definition: util.cc:77
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
Definition: Registration.cc:54
virtual void setChunkSize(size_t)
XXX: Misplaced – not all allocators have a notion of a "chunk". See MemPoolChunked.
Definition: Allocator.h:65
void eventAdd(const char *name, EVH *func, void *arg, double when, int weight, bool cbdata)
Definition: event.cc:107
Definition: Stats.h:17
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products