MCPcopy Create free account
hub / github.com/ceph/ceph / print_osd_utilization

Function print_osd_utilization

src/osd/OSDMap.cc:7458–7479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7456};
7457
7458void print_osd_utilization(const OSDMap& osdmap,
7459 const PGMap& pgmap,
7460 ostream& out,
7461 Formatter *f,
7462 bool tree,
7463 const string& filter)
7464{
7465 const CrushWrapper *crush = osdmap.crush.get();
7466 if (f) {
7467 f->open_object_section("df");
7468 OSDUtilizationFormatDumper d(crush, &osdmap, pgmap, tree, filter);
7469 d.dump(f);
7470 d.summary(f);
7471 f->close_section();
7472 f->flush(out);
7473 } else {
7474 OSDUtilizationPlainDumper d(crush, &osdmap, pgmap, tree, filter);
7475 TextTable tbl;
7476 d.dump(&tbl);
7477 out << tbl << d.summary() << "\n";
7478 }
7479}
7480
7481void OSDMap::check_health(CephContext *cct,
7482 health_check_map_t *checks) const

Callers 2

TEST_FFunction · 0.85
_handle_commandMethod · 0.85

Calls 6

getMethod · 0.45
open_object_sectionMethod · 0.45
dumpMethod · 0.45
summaryMethod · 0.45
close_sectionMethod · 0.45
flushMethod · 0.45

Tested by 1

TEST_FFunction · 0.68