Return TypeFunction nameArguments
voidReportMemoryUsage(hzChain&,bool,)

Declared in file: hzProcess.h
Defined in file : hzMemory.cpp

Function Logic:

0:START 1:hzXDate::SysDateTime cms 2:bHtml 3:hzChain::Printf 4:hzChain::Printf 5:s_Heap 6:bHtml 7:items _report_objects items _report_heap items 8:_report_objects _report_heap 9:!bHtml 10:_report_objects 11:items _report_objects items 12:pms 13: No text

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 ;
}