aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-04-28 19:55:36 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2012-04-28 19:55:36 +0200
commit5f3eb785fe02bf2de752329bd70be0ad56d2cf7b (patch)
treec2ae31cd01df1a9b15c026ea7f97e6bb17738a82
parent1a79bb8b9a826ec29a1351642d398d764925e6d2 (diff)
Add a timer around the scheduled functions barrier
-rw-r--r--Carpet/Carpet/src/CallFunction.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/CallFunction.cc b/Carpet/Carpet/src/CallFunction.cc
index fdb0bb7fd..65be1f244 100644
--- a/Carpet/Carpet/src/CallFunction.cc
+++ b/Carpet/Carpet/src/CallFunction.cc
@@ -320,7 +320,10 @@ namespace Carpet {
buf << attribute->routine << "\n";
string const str = buf.str();
int const id = adler32(str.c_str(), str.length());
+ static Timer barrier_timer ("barrier");
+ barrier_timer.start();
Carpet::NamedBarrier (NULL, id, "Carpet::CallFunction");
+ barrier_timer.stop();
}
total_timer.stop();