2 * Copyright (C) 1996-2023 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_SRC_SBUFSTATSACTION_H
10 #define SQUID_SRC_SBUFSTATSACTION_H
12 #include "mgr/Action.h"
17 /// SBuf stats for cachemgr
18 class SBufStatsAction
: public Mgr::Action
21 /// Mgr::ClassActionCreationHandler for Mgr::RegisterAction()
22 static Pointer
Create(const Mgr::CommandPointer
&cmd
);
23 static void RegisterWithCacheManager(void);
26 explicit SBufStatsAction(const Mgr::CommandPointer
&cmd
);
28 void collect() override
;
29 void dump(StoreEntry
* entry
) override
;
33 void add(const Mgr::Action
& action
) override
;
34 void pack(Ipc::TypedMsgHdr
& msg
) const override
;
35 void unpack(const Ipc::TypedMsgHdr
& msg
) override
;
39 StatHist sbsizesatdestruct
;
40 StatHist mbsizesatdestruct
;
43 #endif /* SQUID_SRC_SBUFSTATSACTION_H */