From cc5c5a7eac0ebcf97c283e1e0dd1674c855a261a Mon Sep 17 00:00:00 2001 From: Matthijs Bijman Date: Mon, 27 Feb 2017 13:55:50 +0100 Subject: Implement logging of cores_used in task_states --- Simulator/include/simulation/workloads/Workload.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Simulator/include/simulation/workloads/Workload.h') diff --git a/Simulator/include/simulation/workloads/Workload.h b/Simulator/include/simulation/workloads/Workload.h index 9de57990..0371deac 100644 --- a/Simulator/include/simulation/workloads/Workload.h +++ b/Simulator/include/simulation/workloads/Workload.h @@ -47,11 +47,21 @@ namespace Simulation /** * \return The start tick of this workload. */ - uint32_t getStartTick() const + uint32_t getStartTick() { return START_TICK; } + /** + * \brief Sets the coresUsed of this workload to the given number of cores. + */ + void setCoresUsed(uint32_t cores); + + /** + * \return Returns the number of cores used by this workload. + */ + uint32_t getCoresUsed(); + // True if the dependency of this workload has finished. bool dependencyFinished = false; @@ -76,5 +86,8 @@ namespace Simulation // The id of the trace this workload belongs to in the database. uint32_t TRACE_ID; + + // The number of cores that this workload is occupying + uint32_t coresUsed = 0; }; } -- cgit v1.2.3