]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/InfoAction.h
2 * DEBUG: section 16 Cache Manager API
6 #ifndef SQUID_MGR_INFO_ACTION_H
7 #define SQUID_MGR_INFO_ACTION_H
9 #include "mgr/Action.h"
10 #include "StoreStats.h"
16 /// store general runtime information
22 InfoActionData
& operator += (const InfoActionData
& stats
);
25 struct timeval squid_start
;
26 struct timeval current_time
;
27 double client_http_clients
;
28 double client_http_requests
;
31 double icp_replies_queued
;
33 double htcp_pkts_recv
;
34 double htcp_pkts_sent
;
36 double request_failure_ratio
;
37 double avg_client_http_requests
;
38 double avg_icp_messages
;
41 double request_hit_ratio5
;
42 double request_hit_ratio60
;
43 double byte_hit_ratio5
;
44 double byte_hit_ratio60
;
45 double request_hit_mem_ratio5
;
46 double request_hit_mem_ratio60
;
47 double request_hit_disk_ratio5
;
48 double request_hit_disk_ratio60
;
50 StoreInfoStats store
; ///< disk and memory cache statistics
52 double unlink_requests
;
53 double http_requests5
;
54 double http_requests60
;
56 double cache_misses60
;
61 double not_modified_replies5
;
62 double not_modified_replies60
;
77 #if HAVE_MSTATS && HAVE_GNUMALLOC_H
78 double ms_bytes_total
;
80 #elif HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
90 #if HAVE_STRUCT_MALLINFO_MXFAST
96 double mp_treeoverhead
;
99 double total_accounted
;
100 #if !(HAVE_MSTATS && HAVE_GNUMALLOC_H) && HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
101 double mem_pool_allocated
;
103 double gb_saved_count
;
104 double gb_freed_count
;
114 /// implement aggregated 'info' action
115 class InfoAction
: public Action
118 InfoAction(const CommandPointer
&cmd
);
121 static Pointer
Create(const CommandPointer
&cmd
);
123 virtual void add(const Action
& action
);
124 virtual void respond(const Request
& request
);
125 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
126 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
130 virtual void collect();
131 virtual void dump(StoreEntry
* entry
);
139 #endif /* SQUID_MGR_INFO_ACTION_H */