summaryrefslogtreecommitdiff
path: root/Simulator/include/modeling/machine/Machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'Simulator/include/modeling/machine/Machine.h')
-rw-r--r--Simulator/include/modeling/machine/Machine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Simulator/include/modeling/machine/Machine.h b/Simulator/include/modeling/machine/Machine.h
index c89d32d1..f18f8352 100644
--- a/Simulator/include/modeling/machine/Machine.h
+++ b/Simulator/include/modeling/machine/Machine.h
@@ -76,6 +76,11 @@ namespace Modeling
*/
float getLoad() const;
+ /**
+ * \return The number of cores in this machine.
+ */
+ uint32_t getNumberOfCores() const;
+
private:
// A list of cpus in this machine.
std::vector<CPU> cpus;