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

Method get_perf_counters

src/client/Client.cc:18847–18862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18845}
18846
18847int Client::get_perf_counters(bufferlist *outbl) {
18848 RWRef_t iref_reader(initialize_state, CLIENT_INITIALIZED);
18849 if (!iref_reader.is_state_satisfied()) {
18850 return -ENOTCONN;
18851 }
18852
18853 ceph::bufferlist inbl;
18854 std::ostringstream err;
18855 std::vector<std::string> cmd{
18856 "{\"prefix\": \"perf dump\"}",
18857 "{\"format\": \"json\"}"
18858 };
18859
18860 ldout(cct, 10) << __func__ << ": perf cmd=" << cmd << dendl;
18861 return cct->get_admin_socket()->execute_command(cmd, inbl, err, outbl);
18862}
18863
18864std::vector<std::string> Client::get_tracked_keys() const noexcept
18865{

Callers 2

ceph_get_perf_countersFunction · 0.45
openMethod · 0.45

Calls 3

is_state_satisfiedMethod · 0.80
get_admin_socketMethod · 0.80
execute_commandMethod · 0.45

Tested by

no test coverage detected