fw4spl
MemoryConsumption.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __MONITOR_ACTION_MEMORYCONSUMPTION_HPP__
8 #define __MONITOR_ACTION_MEMORYCONSUMPTION_HPP__
9 
10 #include "monitor/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 namespace monitor
15 {
16 namespace action
17 {
18 
20 class MONITOR_CLASS_API MemoryConsumption : public ::fwGui::IActionSrv
21 {
22 
23 public:
24 
26 
28  MONITOR_API MemoryConsumption() noexcept;
29 
31  MONITOR_API virtual ~MemoryConsumption() noexcept;
32 
33 protected:
34 
50  void configuring() override;
51 
53  void starting() override;
54 
56  void updating() override;
57 
59  void stopping() override;
60 
61 private:
62 
64  void pushNewArray(size_t memorySizeInBytes);
65 
67  bool m_isIncreaseMode;
68 
70  size_t m_memorySizeInBytes;
71 
72 };
73 
74 } // namespace action
75 } // namespace monitor
76 
77 #endif //__MONITOR_ACTION_MEMORYCONSUMPTION_HPP__
78 
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
Increase or decrease the memory consumption by storing a new image, use to experiment dump process...
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace monitor contains tools for monitoring an application built with FW4SPL.
Definition: fwMetrics.hpp:14