Skip to content

Commit

Permalink
Fixes in Rados profiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolau-manubens committed Jun 28, 2024
1 parent 7ef31f1 commit 422c431
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/eckit/io/rados/RadosCluster.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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<int, std::string>()(::getpid())) {

using namespace std::placeholders;

Expand Down
8 changes: 4 additions & 4 deletions src/eckit/io/rados/RadosCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 422c431

Please sign in to comment.