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

Method FindServiceByName

src/brpc/server.cpp:1763–1767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1761}
1762
1763google::protobuf::Service* Server::FindServiceByName(
1764 const butil::StringPiece& name) const {
1765 ServiceProperty* ss = _service_map.seek(name);
1766 return (ss ? ss->service : NULL);
1767}
1768
1769void Server::GetStat(ServerStatistics* stat) const {
1770 stat->connection_count = 0;

Callers 2

find_method_by_nameFunction · 0.80
TEST_FFunction · 0.80

Calls 1

seekMethod · 0.45

Tested by 1

TEST_FFunction · 0.64