Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

stats.cpp

Go to the documentation of this file.
00001 #include <os2win.h>
00002 #include <stats.h>
00003 
00004 #ifdef DEBUG
00005 
00006 static DWORD nrwindowdcsallocated = 0;
00007 static DWORD nrcalls_GetDCEx = 0;
00008 static DWORD nrcalls_ReleaseDC = 0;
00009 
00010 //******************************************************************************
00011 //******************************************************************************
00012 void STATS_GetDCEx(HWND hwnd, HDC hdc, HRGN hrgn, ULONG flags)
00013 {
00014     nrwindowdcsallocated++;
00015     nrcalls_GetDCEx++;
00016 }
00017 //******************************************************************************
00018 //******************************************************************************
00019 void STATS_ReleaseDC(HWND hwnd, HDC hdc)
00020 {
00021     nrwindowdcsallocated--;
00022     nrcalls_ReleaseDC++;
00023 }
00024 //******************************************************************************
00025 //******************************************************************************
00026 void STATS_DumpStatsUSER32()
00027 {
00028     dprintf(("*************  USER32 STATISTICS BEGIN *****************"));
00029     dprintf(("Total nr of GetDCEx   calls %d", nrcalls_GetDCEx));
00030     dprintf(("Total nr of ReleaseDC calls %d", nrcalls_ReleaseDC));
00031     dprintf(("Leaked DCs: %d", nrwindowdcsallocated));
00032     dprintf(("*************  USER STATISTICS END   *****************"));
00033 }
00034 //******************************************************************************
00035 //******************************************************************************
00036 
00037 
00038 #endif //DEBUG

Generated on Wed Jan 23 23:17:43 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001