Skip to content

Commit ada23e2

Browse files
committed
show debug build in overview page.
1 parent 71a5f11 commit ada23e2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎muduo/net/inspect/ProcessInspector.cc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ string ProcessInspector::overview(HttpRequest::Method, const Inspector::ArgList&
138138
result += ProcessInfo::hostname(); // cache ?
139139
result += "\n";
140140

141+
if (ProcessInfo::isDebugBuild())
142+
{
143+
result += "WARNING: debug build!\n";
144+
}
145+
141146
stringPrintf(&result, "pid %d, num of threads %ld\n",
142147
ProcessInfo::pid(), getLong(procStatus, "Threads:"));
143148

0 commit comments

Comments
 (0)