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

Method ServerPrefix

src/brpc/server.cpp:307–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307std::string Server::ServerPrefix() const {
308 if(_options.server_info_name.empty()) {
309 return butil::string_printf("%s_%d", g_server_info_prefix, listen_address().port);
310 } else {
311 return std::string(g_server_info_prefix) + "_" + _options.server_info_name;
312 }
313}
314
315void* Server::UpdateDerivedVars(void* arg) {
316 const int64_t start_us = butil::cpuwide_time_us();

Callers 2

UpdateDerivedVarsMethod · 0.80
default_methodMethod · 0.80

Calls 2

string_printfFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected