topology.hpp
69 std::vector<PhysicalCore*> buildPhysicalCoresVector(std::vector<VirtualCoreCoordinates> coord, CpuId cpuId);
70 std::vector<VirtualCore*> buildVirtualCoresVector(std::vector<VirtualCoreCoordinates> coord, CpuId cpuId, PhysicalCoreId physicalCoreId);
97 std::vector<PhysicalCore*> virtualToPhysical(const std::vector<VirtualCore*>& virtualCores) const;
241 PhysicalCore(CpuId cpuId, PhysicalCoreId physicalCoreId, std::vector<VirtualCore*> virtualCores);
587 std::vector<VirtualCore*> getOneVirtualPerPhysical(const std::vector<VirtualCore*>& virtualCores);
598 inline bool operator==(const Cpu& lhs, const Cpu& rhs){return lhs.getCpuId() == rhs.getCpuId();}
620 inline bool operator==(const PhysicalCore& lhs, const PhysicalCore& rhs){return lhs.getPhysicalCoreId() == rhs.getPhysicalCoreId();}
631 inline bool operator!=(const PhysicalCore& lhs, const PhysicalCore& rhs){return !operator==(lhs,rhs);}
642 inline bool operator==(const VirtualCore& lhs, const VirtualCore& rhs){return lhs.getVirtualCoreId() == rhs.getVirtualCoreId();}
653 inline bool operator!=(const VirtualCore& lhs, const VirtualCore& rhs){return !operator==(lhs,rhs);}
virtual void maximizeUtilization() const =0
void hotUnplug() const
VirtualCore * getVirtualCore() const
virtual uint getTime() const =0
VirtualCore * getVirtualCore() const
Definition: topology.hpp:328
virtual void maximizeUtilization() const =0
Definition: topology.hpp:445
virtual uint getExitLatency() const =0
std::vector< VirtualCore * > getVirtualCores() const
virtual bool hasFlag(const std::string &flagName) const =0
void hotUnplug() const
std::vector< PhysicalCore * > getPhysicalCores() const
Definition: topology.hpp:127
virtual uint getConsumedPower() const =0
bool isHotPluggable() const
virtual void resetTime()=0
std::vector< Cpu * > getCpus() const
bool isHotPlugged() const
virtual double getIdleTime() const =0
virtual void maximizeUtilization() const =0
virtual bool isHotPlugged() const =0
virtual void resetUtilization() const =0
uint getLevelId() const
VirtualCore * getVirtualCore() const
Definition: topology.hpp:40
virtual bool isEnabled() const =0
virtual void resetCount()=0
Cpu * getCpu(CpuId cpuId) const
virtual void resetUtilization() const =0
virtual void disable() const =0
PhysicalCoreId getPhysicalCoreId() const
virtual void hotPlug() const =0
virtual uint getCount() const =0
virtual std::string getDesc() const =0
virtual void maximizeUtilization() const =0
virtual void resetUtilization() const =0
Definition: topology.hpp:56
virtual bool isEnableable() const =0
Definition: topology.hpp:239
PhysicalCore * getPhysicalCore(PhysicalCoreId physicalCoreId) const
std::vector< VirtualCore * > getVirtualCores() const
void hotPlug() const
virtual std::string getName() const =0
virtual void enable() const =0
VirtualCoreId getVirtualCoreId() const
virtual std::vector< VirtualCoreIdleLevel * > getIdleLevels() const =0
std::vector< VirtualCore * > getVirtualCores() const
virtual uint getAbsoluteTime() const =0
virtual uint64_t getAbsoluteTicks() const =0
virtual bool isHotPluggable() const =0
virtual bool areTicksConstant() const
virtual void resetIdleTime()=0
void hotPlug() const
bool isHotPluggable() const
PhysicalCore * getPhysicalCore(PhysicalCoreId physicalCoreId) const
bool isHotPlugged() const
PhysicalCoreId getPhysicalCoreId() const
virtual void hotUnplug() const =0
VirtualCoreId getVirtualCoreId() const
virtual std::string getVendorId() const =0
virtual void resetUtilization() const =0
CpuId getCpuId() const
virtual std::string getModel() const =0
CpuId getCpuId() const
std::vector< PhysicalCore * > getPhysicalCores() const
virtual uint getAbsoluteCount() const =0
std::vector< PhysicalCore * > virtualToPhysical(const std::vector< VirtualCore * > &virtualCores) const
CpuId getCpuId() const
virtual std::string getFamily() const =0