From de288314515c73c9675f87ed8fe4d292d054bc7e Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Tue, 25 Apr 2017 22:15:36 +0200 Subject: [PATCH] Fix commit b7731f39 that inversed order of timing functions --- timing/timing.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/timing/timing.h b/timing/timing.h index 1b4bacb35..561fed157 100644 --- a/timing/timing.h +++ b/timing/timing.h @@ -217,21 +217,21 @@ enum dparam_timing { * General Macros for timing * */ -#define START_TIMING() \ - t = -RUNTIME_get_time(); \ - START_DAG(); \ - START_TRACING(); \ - START_DISTRIBUTED(); - -#define STOP_TIMING() \ - t += RUNTIME_get_time(); \ - if (iparam[IPARAM_PROFILE] == 2) { \ - RUNTIME_kernelprofile_display(); \ - RUNTIME_schedprofile_display(); \ - } \ - *t_ = t; \ - STOP_DISTRIBUTED(); \ - STOP_TRACING(); \ - STOP_DAG(); +#define START_TIMING() \ + START_DAG(); \ + START_TRACING(); \ + START_DISTRIBUTED(); \ + t = -RUNTIME_get_time(); + +#define STOP_TIMING() \ + STOP_DISTRIBUTED(); \ + t += RUNTIME_get_time(); \ + STOP_TRACING(); \ + STOP_DAG(); \ + if (iparam[IPARAM_PROFILE] == 2) { \ + RUNTIME_kernelprofile_display(); \ + RUNTIME_schedprofile_display(); \ + } \ + *t_ = t; #endif /* TIMING_H */ -- GitLab