Go to the source code of this file.
Classes | |
| struct | gb_t |
Macros | |
| #define | gb_flush_limit (0x3FFFFFFF) |
| #define | gb_inc(gb, delta) { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; (gb)->count++; } |
| #define | gb_incb(gb, delta) { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; } |
| #define | gb_incc(gb, delta) { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->count+= delta; } |
Functions | |
| SQUIDCEXTERN void | Tolower (char *) |
| SQUIDCEXTERN double | xpercent (double part, double whole) |
| SQUIDCEXTERN int | xpercentInt (double part, double whole) |
| SQUIDCEXTERN double | xdiv (double nom, double denom) |
| SQUIDCEXTERN const char * | xitoa (int num) |
| SQUIDCEXTERN const char * | xint64toa (int64_t num) |
| double | gb_to_double (const gb_t *) |
| SQUIDCEXTERN const char * | double_to_str (char *buf, int buf_size, double value) |
| const char * | gb_to_str (const gb_t *) |
| void | gb_flush (gb_t *) |
| SQUIDCEXTERN unsigned int | RoundTo (const unsigned int num, const unsigned int what) |
Macro Definition Documentation
◆ gb_flush_limit
◆ gb_inc
| #define gb_inc | ( | gb, | |
| delta | |||
| ) | { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; (gb)->count++; } |
◆ gb_incb
| #define gb_incb | ( | gb, | |
| delta | |||
| ) | { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->bytes += delta; } |
◆ gb_incc
| #define gb_incc | ( | gb, | |
| delta | |||
| ) | { if ((gb)->bytes > gb_flush_limit || delta > gb_flush_limit) gb_flush(gb); (gb)->count+= delta; } |
Function Documentation
◆ double_to_str()
| SQUIDCEXTERN const char * double_to_str | ( | char * | buf, |
| int | buf_size, | ||
| double | value | ||
| ) |
Definition at line 90 of file util.c.
Referenced by Mem::Report().
◆ gb_flush()
| void gb_flush | ( | gb_t * | g | ) |
Definition at line 77 of file util.c.
References gb_t::bytes, and gb_t::gb.
◆ gb_to_double()
Definition at line 84 of file util.c.
References gb_t::bytes, double, and gb_t::gb.
Referenced by gb_to_str().
◆ gb_to_str()
| const char * gb_to_str | ( | const gb_t * | g | ) |
Definition at line 105 of file util.c.
References gb_to_double(), and max_cc_calls.
◆ RoundTo()
| SQUIDCEXTERN unsigned int RoundTo | ( | const unsigned int | num, |
| const unsigned int | what | ||
| ) |
◆ Tolower()
| SQUIDCEXTERN void Tolower | ( | char * | q | ) |
Definition at line 28 of file util.c.
References xtolower.
Referenced by CachePeer::CachePeer(), ipcache_entry::ipcache_entry(), fqdncacheAddEntryFromHosts(), idnsAddPathComponent(), internalHostname(), internalRemoteUri(), and ACLDomainData::parse().
◆ xdiv()
| SQUIDCEXTERN double xdiv | ( | double | nom, |
| double | denom | ||
| ) |
Definition at line 53 of file util.c.
Referenced by cacheDigestReport(), httpHdrCcStatDumper(), httpHdrScStatDumper(), httpHdrScTargetStatDumper(), httpHeaderFieldStatDumper(), Mem::PoolReport(), and xpercent().
◆ xint64toa()
| SQUIDCEXTERN const char * xint64toa | ( | int64_t | num | ) |
◆ xitoa()
| SQUIDCEXTERN const char * xitoa | ( | int | num | ) |
Definition at line 60 of file util.c.
Referenced by Ssl::CertValidationMsg::composeRequest(), Ipc::Port::MakeAddr(), ProcessMacros(), and HttpHeader::putInt().
◆ xpercent()
| SQUIDCEXTERN double xpercent | ( | double | part, |
| double | whole | ||
| ) |
Definition at line 40 of file util.c.
References xdiv().
Referenced by cacheDigestGuessStatsReport(), httpHeaderFldsPerHdrDumper(), httpHeaderStoreReport(), Mem::PoolReport(), refreshCountsStatsEntry(), refreshStats(), Mem::Report(), storeDigestReport(), CacheDigest::usedMaskPercent(), and xpercentInt().
◆ xpercentInt()
| SQUIDCEXTERN int xpercentInt | ( | double | part, |
| double | whole | ||
| ) |
Definition at line 46 of file util.c.
References xpercent().
Referenced by cacheDigestGuessStatsReport(), cacheDigestReport(), cacheQueryReport(), memStringStats(), peerDigestSetCBlock(), statPeerSelect(), and storeDigestResize().
