| 60 | } |
| 61 | |
| 62 | static 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 | |
| 71 | void MemoryService::default_method(::google::protobuf::RpcController* cntl_base, |
| 72 | const ::brpc::MemoryRequest*, |
no test coverage detected