Return Type | Function name | Arguments |
---|---|---|
void | ReportMemoryUsage | (hzChain&,bool,) |
Declared in file: hzProcess.h
Defined in file : hzMemory.cpp
Function Logic:
Function body:
void ReportMemoryUsage (hzChain& Z, bool bHtml) { static hzMeminfo pms = _hzGlobal_Memstats ; hzMeminfo cms ; hzXDate now ; uint32_t total = 0; now.SysDateTime() ; cms = _hzGlobal_Memstats ; if (bHtml) Z.Printf("<p><center>Memory Report at %s</center></p>\n", *now) ; else Z.Printf("Memory Report at %s\n", *now) ; if (s_Heap) { if (bHtml) { Z << "<table width="1400" slign="center">\n<tr>\n <td valign="top">\n <table width="750" slign="center">\n <tr>\n <td>\n" ; _report_objects(Z, cms, pms, total, bHtml) ; Z << " </td>\n </tr>\n </table>\n </td>\n <td width="15"> </td>\n <td>\n <table width="550" slign="center">\n <tr>\n <td>\n" ; _report_heap(Z, cms, pms, total, bHtml) ; Z << " </td>\n </tr>\n </table>\n </td>\n</tr>\n</table>\n" ; } else { _report_objects(Z, cms, pms, total, bHtml) ; _report_heap(Z, cms, pms, total, bHtml) ; } } else { if (!bHtml) _report_objects(Z, cms, pms, total, bHtml) ; else { Z << "<table width="1400" slign="center">\n<tr>\n <td valign="top">\n" ; _report_objects(Z, cms, pms, total, bHtml) ; Z << " </td>\n</tr>\n</table>\n" ; } } pms = cms ; }