CountersAction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 16 Cache Manager API */
10 
11 #ifndef SQUID_MGR_COUNTERS_ACTION_H
12 #define SQUID_MGR_COUNTERS_ACTION_H
13 
14 #include "mgr/Action.h"
15 
16 namespace Mgr
17 {
18 
21 {
22 public:
25 
26 public:
27  struct timeval sample_time;
50  double icp_pkts_sent;
51  double icp_pkts_recv;
64 #if USE_CACHE_DIGESTS
66  double cd_times_used;
67  double cd_msgs_sent;
68  double cd_msgs_recv;
69  double cd_memory;
73 #endif
75  double page_faults;
76  double select_loops;
77  double cpu_time;
78  double wall_time;
79  double swap_outs;
80  double swap_ins;
83 };
84 
86 class CountersAction: public Action
87 {
88 protected:
89  CountersAction(const CommandPointer &cmd);
90 
91 public:
92  static Pointer Create(const CommandPointer &cmd);
93  /* Action API */
94  virtual void add(const Action& action);
95  virtual void pack(Ipc::TypedMsgHdr& msg) const;
96  virtual void unpack(const Ipc::TypedMsgHdr& msg);
97 
98 protected:
99  /* Action API */
100  virtual void collect();
101  virtual void dump(StoreEntry* entry);
102 
103 private:
105 };
106 
107 } // namespace Mgr
108 
109 #endif /* SQUID_MGR_COUNTERS_ACTION_H */
110 
struct timeval sample_time
class Ping::pingStats_ stats
CountersActionData & operator+=(const CountersActionData &stats)
implement aggregated 'counters' action
bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:311
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
Cache Manager API.
Definition: Action.h:19
store traffic and resource counters
CountersActionData data

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors