[Opalvoip-svn] SF.net SVN: opalvoip:[32848] ptlib/trunk/src/ptlib/common/object.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2014-09-29 05:03:21
|
Revision: 32848 http://sourceforge.net/p/opalvoip/code/32848 Author: rjongbloed Date: 2014-09-29 05:03:18 +0000 (Mon, 29 Sep 2014) Log Message: ----------- Fixed HTML version of profiling output Modified Paths: -------------- ptlib/trunk/src/ptlib/common/object.cxx Modified: ptlib/trunk/src/ptlib/common/object.cxx =================================================================== --- ptlib/trunk/src/ptlib/common/object.cxx 2014-09-29 04:16:54 UTC (rev 32847) +++ ptlib/trunk/src/ptlib/common/object.cxx 2014-09-29 05:03:18 UTC (rev 32848) @@ -1691,11 +1691,12 @@ << "<td align=center>" << thrd->second.m_cpu; if (thrd->first >= 0) strm << "<td align=right>" << fixed << setprecision(2) << thrd->first << '%'; - for (FunctionAccumulatorMap::iterator func = thrd->second.m_functions.begin(); func != thrd->second.m_functions.end(); ++func) { + if (!thrd->second.m_functions.empty()) strm << "<tr><td> <td colspan=4>" "<table border=1 cellspacing=1 cellpadding=4 width=100%>" - "<th align=left>Function<th>Count<th>Minimum<th>Maxium<th>Average<th align=right nowrap>Core %" - "<tr><td>"; + "<th align=left>Function<th>Count<th>Minimum<th>Maxium<th>Average<th align=right nowrap>Core %"; + for (FunctionAccumulatorMap::iterator func = thrd->second.m_functions.begin(); func != thrd->second.m_functions.end(); ++func) { + strm << "<tr><td>"; if (func->second.m_type == e_ManualEntry) strm << func->second.m_function.m_name; else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |