From ffc833fd8cb5bfb0a6a6d95b8b62f5dacef74cde Mon Sep 17 00:00:00 2001 From: Utkarsh Ayachit Date: Thu, 21 Dec 2017 15:31:26 -0500 Subject: [PATCH] Update diy to revision `ca5e7cf23`. --- diy/include/diy/master.hpp | 2 -- diy/include/diy/stats.hpp | 9 ++------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/diy/include/diy/master.hpp b/diy/include/diy/master.hpp index ec7319a60..97ccb8724 100644 --- a/diy/include/diy/master.hpp +++ b/diy/include/diy/master.hpp @@ -1062,8 +1062,6 @@ void diy::Master:: flush() { - - auto scoped = prof.scoped("comm"); #ifdef DEBUG time_type start = get_time(); unsigned wait = 1; diff --git a/diy/include/diy/stats.hpp b/diy/include/diy/stats.hpp index 0628146df..4866ccfb1 100644 --- a/diy/include/diy/stats.hpp +++ b/diy/include/diy/stats.hpp @@ -6,7 +6,7 @@ #include #include "log.hpp" // need this for format -#define DIY_PROFILE 1 + namespace diy { namespace stats @@ -71,11 +71,7 @@ struct Profiler { const Event& e = events[i]; auto time = std::chrono::duration_cast(e.stamp - start).count(); - fmt::print(out, "{} {} {}\n", - time / 1000000., - (e.begin ? '<' : '>'), - e.name); - /* + fmt::print(out, "{:02d}:{:02d}:{:02d}.{:06d} {}{}\n", time/1000000/60/60, time/1000000/60 % 60, @@ -83,7 +79,6 @@ struct Profiler time % 1000000, (e.begin ? '<' : '>'), e.name); - */ } }