From 2119e6533d557066a41c25915f77b2e64a5ba812 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 26 Jul 2018 11:12:55 +0200 Subject: [PATCH] [HostLoad] Update comments + add debug statement --- src/plugins/host_load.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/host_load.cpp b/src/plugins/host_load.cpp index 6185149032..5387b3c214 100644 --- a/src/plugins/host_load.cpp +++ b/src/plugins/host_load.cpp @@ -52,7 +52,8 @@ private: double last_updated_ = 0; double last_reset_ = 0; /** - * current_speed each core is running at right now + * current_speed each core is running at; we need to store this as the speed + * will already have changed once we get notified */ double current_speed_ = 0; /** @@ -82,6 +83,7 @@ void HostLoad::update() if (current_flops_ == 0) { idle_time_ += (now - last_updated_); total_idle_time_ += (now - last_updated_); + XBT_DEBUG("[%s]: Currently idle -> Added %f seconds to idle time (totaling %fs)", host_->get_cname(), (now - last_updated_), idle_time_); } theor_max_flops_ += current_speed_ * host_->get_core_count() * (now - last_updated_); -- 2.20.1