2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SBUFEXTRAS_H
10 #define SQUID_SBUFEXTRAS_H
12 #include "mgr/Action.h"
18 /// SBuf stats for cachemgr
19 class SBufStatsAction
: public Mgr::Action
22 /// Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
23 static Pointer
Create(const Mgr::CommandPointer
&cmd
);
24 static void RegisterWithCacheManager(void);
27 explicit SBufStatsAction(const Mgr::CommandPointer
&cmd
);
29 virtual void collect();
30 virtual void dump(StoreEntry
* entry
);
34 virtual void add(const Mgr::Action
& action
);
35 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
36 virtual void unpack(const Ipc::TypedMsgHdr
& msg
);
40 StatHist sbsizesatdestruct
;
41 StatHist mbsizesatdestruct
;
44 #endif /* SQUID_SBUFSTATSACTION_H */