|
Squid Web Cache master
|
collects information about ICAP processing related to an HTTP transaction More...
#include <History.h>
Public Types | |
| typedef RefCount< History > | Pointer |
Public Member Functions | |
| History () | |
| void | start (const char *context) |
| record the start of an ICAP processing interval | |
| void | stop (const char *context) |
| note the end of an ICAP processing interval | |
| void | processingTime (struct timeval &total) const |
Public Attributes | |
| String | ssluser |
| the username from SSL | |
| LogTags | logType |
| the squid request status (TCP_MISS etc) | |
| String | log_uri |
| the request uri | |
| size_t | req_sz |
| the request size | |
Private Member Functions | |
| void | currentTime (struct timeval &) const |
| time since current start or zero | |
Private Attributes | |
| timeval | currentStart |
| when the current processing interval started | |
| struct timeval | pastTime |
| sum of closed processing interval durations | |
| int | concurrencyLevel |
| number of concurrent processing threads | |
| Adaptation::Icap::History::History | ( | ) |
Definition at line 15 of file History.cc.
References currentStart, and pastTime.
|
private |
Definition at line 57 of file History.cc.
References current_time, and tvSub().
| void Adaptation::Icap::History::processingTime | ( | struct timeval & | total | ) | const |
the total time of all ICAP processing intervals
| [out] | total | time taken for all ICAP processing |
Definition at line 49 of file History.cc.
References debugs, tvAssignAdd(), and tvToMsec().
| void Adaptation::Icap::History::start | ( | const char * | context | ) |
Definition at line 23 of file History.cc.
References current_time, debugs, and tvToMsec().
Referenced by Adaptation::Icap::ModXactLauncher::updateHistory().
| void Adaptation::Icap::History::stop | ( | const char * | context | ) |
Definition at line 32 of file History.cc.
References DBG_IMPORTANT, debugs, tvAssignAdd(), and tvToMsec().
Referenced by Adaptation::Icap::ModXactLauncher::updateHistory().
|
private |
| String Adaptation::Icap::History::log_uri |
Definition at line 44 of file History.h.
Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().
| LogTags Adaptation::Icap::History::logType |
Definition at line 42 of file History.h.
Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().
|
private |
| String Adaptation::Icap::History::ssluser |
Definition at line 40 of file History.h.
Referenced by Adaptation::Icap::ModXact::finalizeLogInfo().