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"
29#include <MemoryX/interface/core/EntityBase.h>
30#include <MemoryX/interface/memorytypes/ProfilerEntities.h>
31
32namespace memoryx
33{
36
38 virtual public memoryx::ProfilerMemoryUsageBase,
39 virtual public memoryx::ProfilerEntity
40 {
41 public:
43 ProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage& memoryUsage);
45
46 ~ProfilerMemoryUsage() override;
47
48 Ice::ObjectPtr ice_clone() const override;
49 ProfilerEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
50
51 void setProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage& memoryUsage);
52
53 Ice::Int getPid(const Ice::Current& c = Ice::emptyCurrent) const override;
54 void setPid(Ice::Int pid, const Ice::Current& c = Ice::emptyCurrent) override;
55
56 std::string getProcessName(const Ice::Current& c = Ice::emptyCurrent) const override;
57 void setProcessName(const std::string& processName,
58 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,
65 const Ice::Current& c = Ice::emptyCurrent) override;
66
67
68 private:
69 void initializeAttributes();
70 };
71} // namespace memoryx
std::string timestamp()
constexpr T c
void setMemoryUsage(Ice::Int memoryUsage, const Ice::Current &c=Ice::emptyCurrent) override
std::string getProcessName(const Ice::Current &c=Ice::emptyCurrent) const override
Ice::Int getMemoryUsage(const Ice::Current &c=Ice::emptyCurrent) const override
void setTimestamp(Ice::Int timestamp, const Ice::Current &c=Ice::emptyCurrent) override
Ice::Int getPid(const Ice::Current &c=Ice::emptyCurrent) const override
ProfilerEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
void setProfilerMemoryUsage(const armarx::ProfilerProcessMemoryUsage &memoryUsage)
Ice::ObjectPtr ice_clone() const override
void setPid(Ice::Int pid, const Ice::Current &c=Ice::emptyCurrent) override
void setProcessName(const std::string &processName, const Ice::Current &c=Ice::emptyCurrent) override
Ice::Int getTimestamp(const Ice::Current &c=Ice::emptyCurrent) const override
VirtualRobot headers.
IceInternal::Handle< ProfilerMemoryUsage > ProfilerMemoryUsagePtr
IceInternal::Handle< ProfilerEntity > ProfilerEntityPtr