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

Method print_tree

src/osd/OSDMap.cc:4722–4732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4720};
4721
4722void OSDMap::print_tree(Formatter *f, ostream *out, unsigned filter, string bucket) const
4723{
4724 if (f) {
4725 OSDTreeFormattingDumper(crush.get(), this, filter).dump(f, bucket);
4726 } else {
4727 ceph_assert(out);
4728 TextTable tbl;
4729 OSDTreePlainDumper(crush.get(), this, filter).dump(&tbl, bucket);
4730 *out << tbl;
4731 }
4732}
4733
4734void OSDMap::print_summary(Formatter *f, ostream& out,
4735 const string& prefix, bool extra) const

Callers 3

mainFunction · 0.80
get_pythonMethod · 0.80
preprocess_commandMethod · 0.80

Calls 4

OSDTreePlainDumperClass · 0.85
dumpMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected