ProfilerProcess.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"
29 #include <MemoryX/interface/core/EntityBase.h>
30 #include <MemoryX/interface/memorytypes/ProfilerEntities.h>
31 
32 namespace memoryx
33 {
34  class ProfilerProcess;
36 
38  virtual public memoryx::ProfilerProcessBase,
39  virtual public memoryx::ProfilerEntity
40  {
41  public:
43  ProfilerProcess(const armarx::ProfilerProcessCpuUsage& process);
45  ~ProfilerProcess() override;
46 
47  Ice::ObjectPtr ice_clone() const override;
48  ProfilerEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
49 
50  void setProfilerProcess(const armarx::ProfilerProcessCpuUsage& process);
51 
52  Ice::Int getPid(const Ice::Current& c = Ice::emptyCurrent) const override;
53  void setPid(Ice::Int pid, const Ice::Current& c = Ice::emptyCurrent) override;
54 
55  std::string getProcessName(const Ice::Current& c = Ice::emptyCurrent) const override;
56  void setProcessName(const std::string& processName,
57  const Ice::Current& c = Ice::emptyCurrent) override;
58 
59  Ice::Int getTimestamp(const Ice::Current& c = Ice::emptyCurrent) const override;
60  void setTimestamp(Ice::Int timestamp, const Ice::Current& c = Ice::emptyCurrent) override;
61 
62  Ice::Double getProcessCpuUsage(const Ice::Current& c = Ice::emptyCurrent) const override;
63  void setProcessCpuUsage(Ice::Double processCpuUsage,
64  const Ice::Current& c = Ice::emptyCurrent) override;
65 
66  private:
67  void initializeAttributes();
68  };
69 } // namespace memoryx
memoryx::ProfilerProcess::ProfilerProcess
ProfilerProcess()
Definition: ProfilerProcess.cpp:30
memoryx::ProfilerProcess
Definition: ProfilerProcess.h:37
memoryx::ProfilerProcess::setTimestamp
void setTimestamp(Ice::Int timestamp, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerProcess.cpp:121
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
memoryx::ProfilerEntity
Definition: ProfilerEntity.h:36
memoryx::ProfilerProcess::setProcessCpuUsage
void setProcessCpuUsage(Ice::Double processCpuUsage, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerProcess.cpp:133
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::ProfilerProcess::getTimestamp
Ice::Int getTimestamp(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerProcess.cpp:115
armarx::VariantType::Double
const VariantTypeId Double
Definition: Variant.h:920
memoryx::ProfilerProcess::setPid
void setPid(Ice::Int pid, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerProcess.cpp:97
memoryx::ProfilerProcess::setProfilerProcess
void setProfilerProcess(const armarx::ProfilerProcessCpuUsage &process)
Definition: ProfilerProcess.cpp:82
memoryx::ProfilerProcess::getProcessName
std::string getProcessName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerProcess.cpp:103
timestamp
std::string timestamp()
Definition: CartographerAdapter.cpp:85
memoryx::ProfilerProcess::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: ProfilerProcess.cpp:66
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:661
memoryx::ProfilerProcess::getPid
Ice::Int getPid(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerProcess.cpp:91
Entity.h
memoryx::ProfilerProcess::~ProfilerProcess
~ProfilerProcess() override
Definition: ProfilerProcess.cpp:52
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:917
memoryx::ProfilerProcess::setProcessName
void setProcessName(const std::string &processName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: ProfilerProcess.cpp:109
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::ProfilerProcess::clone
ProfilerEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Definition: ProfilerProcess.cpp:72
memoryx::ProfilerProcess::getProcessCpuUsage
Ice::Double getProcessCpuUsage(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: ProfilerProcess.cpp:127
ProfilerEntity.h