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

Method PrintTabsBody

src/brpc/server.cpp:1912–1925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1910}
1911
1912void Server::PrintTabsBody(std::ostream& os,
1913 const char* current_tab_name) const {
1914 os << "<ul class='tabs-menu'>\n";
1915 if (_tab_info_list) {
1916 for (size_t i = 0; i < _tab_info_list->size(); ++i) {
1917 const TabInfo& info = (*_tab_info_list)[i];
1918 tabs_li(os, info.path.c_str(), info.tab_name.c_str(),
1919 current_tab_name);
1920 }
1921 }
1922 os << "<li id='https://github.com/apache/brpc/blob/master/docs/cn/builtin_service.md' "
1923 "class='help'>?</li>\n</ul>\n"
1924 "<div style='height:40px;'></div>"; // placeholder
1925}
1926
1927static pthread_mutex_t g_dummy_server_mutex = PTHREAD_MUTEX_INITIALIZER;
1928static Server* g_dummy_server = NULL;

Callers 8

default_methodMethod · 0.80
default_methodMethod · 0.80
default_methodMethod · 0.80
default_methodMethod · 0.80
DoProfilingFunction · 0.80
StartProfilingFunction · 0.80
default_methodMethod · 0.80
default_methodMethod · 0.80

Calls 3

tabs_liFunction · 0.85
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected