]>
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"
15 /// store general runtime information
21 InfoActionData
& operator += (const InfoActionData
& stats
);
24 struct timeval squid_start
;
25 struct timeval current_time
;
26 double client_http_clients
;
27 double client_http_requests
;
30 double icp_replies_queued
;
32 double htcp_pkts_recv
;
33 double htcp_pkts_sent
;
35 double request_failure_ratio
;
36 double avg_client_http_requests
;
37 double avg_icp_messages
;
40 double request_hit_ratio5
;
41 double request_hit_ratio60
;
42 double byte_hit_ratio5
;
43 double byte_hit_ratio60
;
44 double request_hit_mem_ratio5
;
45 double request_hit_mem_ratio60
;
46 double request_hit_disk_ratio5
;
47 double request_hit_disk_ratio60
;
49 StoreInfoStats store
; ///< disk and memory cache statistics
51 double unlink_requests
;
52 double http_requests5
;
53 double http_requests60
;
55 double cache_misses60
;
60 double not_modified_replies5
;
61 double not_modified_replies60
;
73 #if HAVE_MSTATS && HAVE_GNUMALLOC_H
74 double ms_bytes_total
;
76 #elif HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
86 #if HAVE_STRUCT_MALLINFO_MXFAST
92 double mp_treeoverhead
;
93 #endif /* HAVE_STRUCT_MALLINFO_MXFAST */
94 #endif /* HAVE_MALLINFO && HAVE_STRUCT_MALLINFO */
95 double total_accounted
;
96 #if !(HAVE_MSTATS && HAVE_GNUMALLOC_H) && HAVE_MALLINFO && HAVE_STRUCT_MALLINFO
97 double mem_pool_allocated
;
99 double gb_saved_count
;
100 double gb_freed_count
;
110 /// implement aggregated 'info' action
111 class InfoAction
: public Action
114 InfoAction(const CommandPointer
&cmd
);
117 static Pointer
Create(const CommandPointer
&cmd
);
119 virtual void add(const Action
& action
);
120 virtual void respond(const Request
& request
);
121 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
122 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
126 virtual void collect();
127 virtual void dump(StoreEntry
* entry
);
135 #endif /* SQUID_MGR_INFO_ACTION_H */