ProfilerMemoryUsage.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package MemoryX::Core::MemoryTypes
19  * @author Adil Orhan (ubdnw at student dot kit dot edu)
20  * @date 2015
21  * @copyright http://www.gnu.org/licenses/gpl.txt
22  * GNU General Public License
23  */
24 
25 #pragma once
26 
27 #include "ProfilerEntity.h"
28 
29 #include <MemoryX/interface/core/EntityBase.h>
30 #include <MemoryX/interface/memorytypes/ProfilerEntities.h>
32 
33 namespace memoryx
34 {
35  class ProfilerMemoryUsage;
37 
39  virtual public memoryx::ProfilerMemoryUsageBase,
40  virtual public memoryx::ProfilerEntity
41  {
42  public:
44  ProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage& memoryUsage);
46 
47  ~ProfilerMemoryUsage() override;
48 
49  Ice::ObjectPtr ice_clone() const override;
50  ProfilerEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
51 
52  void setProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage& memoryUsage);
53 
54  Ice::Int getPid(const Ice::Current& c = Ice::emptyCurrent) const override;
55  void setPid(Ice::Int pid, const Ice::Current& c = Ice::emptyCurrent) override;
56 
57  std::string getProcessName(const Ice::Current& c = Ice::emptyCurrent) const override;
58  void setProcessName(const std::string& processName, const Ice::Current& c = Ice::emptyCurrent) override;
59 
60  Ice::Int getTimestamp(const Ice::Current& c = Ice::emptyCurrent) const override;
61  void setTimestamp(Ice::Int timestamp, const Ice::Current& c = Ice::emptyCurrent) override;
62 
63  Ice::Int getMemoryUsage(const Ice::Current& c = Ice::emptyCurrent) const override;
64  void setMemoryUsage(Ice::Int memoryUsage, const Ice::Current& c = Ice::emptyCurrent) override;
65 
66 
67  private:
68  void initializeAttributes();
69  };
70 }
71 
memoryx::ProfilerMemoryUsage::ProfilerMemoryUsage
ProfilerMemoryUsage()
Definition: ProfilerMemoryUsage.cpp:31
memoryx::ProfilerMemoryUsage::getProcessName
std::string getProcessName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerMemoryUsage.cpp:98
memoryx::ProfilerMemoryUsage::clone
ProfilerEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Definition: ProfilerMemoryUsage.cpp:71
memoryx::ProfilerMemoryUsage::setMemoryUsage
void setMemoryUsage(Ice::Int memoryUsage, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerMemoryUsage.cpp:123
memoryx::ProfilerMemoryUsage::getPid
Ice::Int getPid(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerMemoryUsage.cpp:88
memoryx::ProfilerMemoryUsage::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: ProfilerMemoryUsage.cpp:66
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::ProfilerEntity
Definition: ProfilerEntity.h:36
memoryx::ProfilerMemoryUsage::setProcessName
void setProcessName(const std::string &processName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerMemoryUsage.cpp:103
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::ProfilerMemoryUsage::setProfilerMemoryUsage
void setProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage &memoryUsage)
Definition: ProfilerMemoryUsage.cpp:80
memoryx::ProfilerMemoryUsage::getTimestamp
Ice::Int getTimestamp(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerMemoryUsage.cpp:108
memoryx::ProfilerMemoryUsage::getMemoryUsage
Ice::Int getMemoryUsage(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerMemoryUsage.cpp:118
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:681
memoryx::ProfilerMemoryUsage::setPid
void setPid(Ice::Int pid, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerMemoryUsage.cpp:93
memoryx::ProfilerMemoryUsage::setTimestamp
void setTimestamp(Ice::Int timestamp, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerMemoryUsage.cpp:113
Entity.h
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:916
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::ProfilerMemoryUsage
Definition: ProfilerMemoryUsage.h:38
memoryx::ProfilerMemoryUsage::~ProfilerMemoryUsage
~ProfilerMemoryUsage() override
Definition: ProfilerMemoryUsage.cpp:54
ProfilerEntity.h