X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fcommon%2Fperf_counters.h;h=942edf6d7e544ec61aea820676da9216ef1b60bd;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=c5f69aa7ce31abcb911c86d29f586f951f79faf3;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/src/common/perf_counters.h b/ceph/src/common/perf_counters.h index c5f69aa7c..942edf6d7 100644 --- a/ceph/src/common/perf_counters.h +++ b/ceph/src/common/perf_counters.h @@ -246,13 +246,13 @@ public: void hinc(int idx, int64_t x, int64_t y); void reset(); - void dump_formatted(ceph::Formatter *f, bool schema, + void dump_formatted(ceph::Formatter *f, bool schema, bool dump_labeled, const std::string &counter = "") const { - dump_formatted_generic(f, schema, false, counter); + dump_formatted_generic(f, schema, false, dump_labeled, counter); } void dump_formatted_histograms(ceph::Formatter *f, bool schema, const std::string &counter = "") const { - dump_formatted_generic(f, schema, true, counter); + dump_formatted_generic(f, schema, true, false, counter); } std::pair get_tavg_ns(int idx) const; @@ -278,6 +278,7 @@ private: PerfCounters(const PerfCounters &rhs); PerfCounters& operator=(const PerfCounters &rhs); void dump_formatted_generic(ceph::Formatter *f, bool schema, bool histograms, + bool dump_labeled, const std::string &counter = "") const; typedef std::vector perf_counter_data_vec_t; @@ -323,16 +324,16 @@ public: void clear(); bool reset(const std::string &name); - void dump_formatted(ceph::Formatter *f, bool schema, + void dump_formatted(ceph::Formatter *f, bool schema, bool dump_labeled, const std::string &logger = "", const std::string &counter = "") const { - dump_formatted_generic(f, schema, false, logger, counter); + dump_formatted_generic(f, schema, false, dump_labeled, logger, counter); } void dump_formatted_histograms(ceph::Formatter *f, bool schema, const std::string &logger = "", const std::string &counter = "") const { - dump_formatted_generic(f, schema, true, logger, counter); + dump_formatted_generic(f, schema, true, false, logger, counter); } // A reference to a perf_counter_data_any_d, with an accompanying @@ -351,6 +352,7 @@ public: private: void dump_formatted_generic(ceph::Formatter *f, bool schema, bool histograms, + bool dump_labeled, const std::string &logger = "", const std::string &counter = "") const;