From 1963c213ef09235090a381fa9bb1068d4d76a318 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 25 Oct 2016 21:50:29 +0200
Subject: [PATCH] hide rid, tic, and toc behind an ifdef.

---
 src/task.h | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/task.h b/src/task.h
index f840c0b4b8..d7234e20e3 100644
--- a/src/task.h
+++ b/src/task.h
@@ -127,9 +127,6 @@ struct task {
   /*! Weight of the task */
   int weight;
 
-  /*! ID of the queue or runner owning this task */
-  short int rid;
-
   /*! Number of tasks unlocked by this one */
   short int nr_unlock_tasks;
 
@@ -150,6 +147,14 @@ struct task {
 
   /*! Is this task implicit (i.e. does not do anything) ? */
   char implicit;
+  
+#ifdef WITH_TASK_DEBUG
+  /*! ID of the queue or runner owning this task */
+  short int rid;
+
+  /*! Start and end time of this task */
+  ticks tic, toc;
+#endif
 
 } SWIFT_STRUCT_ALIGN;
 
-- 
GitLab