virtual void get_db_statistics(Formatter *f) { }
virtual void generate_db_histogram(Formatter *f) { }
+ virtual void dump_perf_counters(Formatter *f) {}
virtual string get_type() = 0;
#include "include/memory.h"
#include "include/mempool.h"
#include "common/Finisher.h"
+#include "common/perf_counters.h"
#include "compressor/Compressor.h"
#include "os/ObjectStore.h"
void get_db_statistics(Formatter *f) override;
void generate_db_histogram(Formatter *f) override;
+ void dump_perf_counters(Formatter *f) override {
+ f->open_object_section("perf_counters");
+ logger->dump_formatted(f, false);
+ f->close_section();
+ }
public:
int statfs(struct store_statfs_t *buf) override;
#include "common/Timer.h"
#include "common/WorkQueue.h"
+#include "common/perf_counters.h"
#include "common/Mutex.h"
#include "HashIndex.h"
bool needs_journal() {
return false;
}
+ void dump_perf_counters(Formatter *f) override {
+ f->open_object_section("perf_counters");
+ logger->dump_formatted(f, false);
+ f->close_section();
+ }
int write_version_stamp();
int version_stamp_is_valid(uint32_t *version);
int mkjournal() {
return 0;
}
+ void dump_perf_counters(Formatter *f) override {
+ f->open_object_section("perf_counters");
+ logger->dump_formatted(f, false);
+ f->close_section();
+ }
int statfs(struct store_statfs_t *buf) override;