MCPcopy Create free account
hub / github.com/apache/brpc / get_jemalloc_memory_info

Function get_jemalloc_memory_info

src/brpc/builtin/memory_service.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static void get_jemalloc_memory_info(Controller* cntl) {
63 const brpc::URI& uri = cntl->http_request().uri();
64 cntl->http_response().set_content_type("text/plain");
65
66 const std::string* uri_opts = uri.GetQuery("opts");
67 std::string opts = !uri_opts || uri_opts->empty() ? "Ja" : *uri_opts;
68 cntl->response_attachment().append(StatsPrint(opts));
69}
70
71void MemoryService::default_method(::google::protobuf::RpcController* cntl_base,
72 const ::brpc::MemoryRequest*,

Callers 1

default_methodMethod · 0.85

Calls 5

StatsPrintFunction · 0.85
set_content_typeMethod · 0.80
GetQueryMethod · 0.80
emptyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected