diff --git a/src/eckit/io/rados/RadosCluster.cc b/src/eckit/io/rados/RadosCluster.cc index 3aee8c298..9e4736554 100644 --- a/src/eckit/io/rados/RadosCluster.cc +++ b/src/eckit/io/rados/RadosCluster.cc @@ -8,6 +8,8 @@ * does it submit to any jurisdiction. */ +#include "eckit/runtime/Main.h" + #include "eckit/io/rados/RadosCluster.h" #include "eckit/io/rados/RadosAttributes.h" #include "eckit/io/rados/RadosObject.h" @@ -170,8 +172,8 @@ RadosCluster& RadosCluster::instance() { return instance_; } -RadosCluster::RadosCluster() : - cluster_(0) { +RadosCluster::RadosCluster() : cluster_(0), + stats_(std::string("Rados profiling ") + eckit::Main::hostname() + ":" + eckit::Translator()(::getpid())) { using namespace std::placeholders; diff --git a/src/eckit/io/rados/RadosCluster.h b/src/eckit/io/rados/RadosCluster.h index 776575a7a..dc28f65a2 100644 --- a/src/eckit/io/rados/RadosCluster.h +++ b/src/eckit/io/rados/RadosCluster.h @@ -100,10 +100,10 @@ class RadosCluster { rados_t cluster_; mutable PoolCtxCache ctx_; - eckit::RadosIOStats stats_; - eckit::Timer timer_; - eckit::Timer rados_call_timer_; - eckit::Timer misc_timer_; + mutable eckit::RadosIOStats stats_; + mutable eckit::Timer timer_; + mutable eckit::Timer rados_call_timer_; + mutable eckit::Timer misc_timer_; void reset();