]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/InfoAction.h
4 * DEBUG: section 16 Cache Manager API
8 #ifndef SQUID_MGR_INFO_ACTION_H
9 #define SQUID_MGR_INFO_ACTION_H
11 #include "mgr/Action.h"
12 #include "StoreStats.h"
18 /// store general runtime information
24 InfoActionData
& operator += (const InfoActionData
& stats
);
27 struct timeval squid_start
;
28 struct timeval current_time
;
29 double client_http_clients
;
30 double client_http_requests
;
33 double icp_replies_queued
;
35 double htcp_pkts_recv
;
36 double htcp_pkts_sent
;
38 double request_failure_ratio
;
39 double avg_client_http_requests
;
40 double avg_icp_messages
;
43 double request_hit_ratio5
;
44 double request_hit_ratio60
;
45 double byte_hit_ratio5
;
46 double byte_hit_ratio60
;
47 double request_hit_mem_ratio5
;
48 double request_hit_mem_ratio60
;
49 double request_hit_disk_ratio5
;
50 double request_hit_disk_ratio60
;
52 StoreInfoStats store
; ///< disk and memory cache statistics
54 double unlink_requests
;
55 double http_requests5
;
56 double http_requests60
;
58 double cache_misses60
;
63 double not_modified_replies5
;
64 double not_modified_replies60
;
79 #if HAVE_MSTATS && HAVE_GNUMALLOC_H
80 double ms_bytes_total
;
82 #elif HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
92 #if HAVE_STRUCT_MALLINFO_MXFAST
98 double mp_treeoverhead
;
101 double total_accounted
;
102 #if !(HAVE_MSTATS && HAVE_GNUMALLOC_H) && HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
103 double mem_pool_allocated
;
105 double gb_saved_count
;
106 double gb_freed_count
;
116 /// implement aggregated 'info' action
117 class InfoAction
: public Action
120 InfoAction(const CommandPointer
&cmd
);
123 static Pointer
Create(const CommandPointer
&cmd
);
125 virtual void add(const Action
& action
);
126 virtual void respond(const Request
& request
);
127 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
128 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
132 virtual void collect();
133 virtual void dump(StoreEntry
* entry
);
141 #endif /* SQUID_MGR_INFO_ACTION_H */