27 #include <MemoryX/interface/core/EntityBase.h>
28 #include <MemoryX/interface/memorytypes/ProfilerEntities.h>
33 class ResourceProfileEntity;
37 virtual public memoryx::ResourceProfileEntityBase,
42 ResourceProfileEntity(
const StatisticMeasuresBasePtr& duration,
const StatisticMeasuresBasePtr& cpuUsage,
const StatisticMeasuresBasePtr& memoryUsage);
51 StatisticMeasuresBasePtr
getDuration(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
52 void setDuration(
const StatisticMeasuresBasePtr& duration,
const Ice::Current&
c = Ice::emptyCurrent)
override;
54 StatisticMeasuresBasePtr
getCpuUsage(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
55 void setCpuUsage(
const StatisticMeasuresBasePtr& cpuUsage,
const Ice::Current&
c = Ice::emptyCurrent)
override;
57 StatisticMeasuresBasePtr
getMemoryUsage(
const Ice::Current&
c = Ice::emptyCurrent)
const override;
58 void setMemoryUsage(
const StatisticMeasuresBasePtr& memoryUsage,
const Ice::Current&
c = Ice::emptyCurrent)
override;
60 void output(std::ostream& stream)
const;
61 void initializeAttributes();
63 static const std::string DURATION;
64 static const std::string CPU_USAGE;
65 static const std::string MEMORY_USAGE;
81 friend std::ostream&
operator<<(std::ostream& stream,
const ResourceProfileEntityBasePtr& rhs)
83 stream << ResourceProfileEntityPtr::dynamicCast(rhs);