Signed-off-by: Varada Kari <varada.kari@sandisk.com>
return alloc[id]->get_free();
}
+void BlueFS::dump_perf_counters(Formatter *f)
+{
+ f->open_object_section("bluefs_perf_counters");
+ logger->dump_formatted(f,0);
+ f->close_section();
+}
+
+
void BlueFS::get_usage(vector<pair<uint64_t,uint64_t>> *usage)
{
std::lock_guard<std::mutex> l(lock);
uint64_t get_total(unsigned id);
uint64_t get_free(unsigned id);
void get_usage(vector<pair<uint64_t,uint64_t>> *usage); // [<free,total> ...]
+ void dump_perf_counters(Formatter *f);
/// get current extents that we own for given block device
int get_block_extents(unsigned id, interval_set<uint64_t> *extents);