Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: Heapstats.hxx
  7. //
  8. // Contents: Structure that holds heap statistics.
  9. //
  10. // Classes: HEAPSTATS
  11. //
  12. // History: 26-Oct-93 DavidBak Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #if !defined(__HEAPSTAT_HXX__)
  16. #define __HEAPSTAT_HXX__
  17. #if (PERFSNAP == 1) || (DBG == 1)
  18. //+-------------------------------------------------------------------------
  19. //
  20. // Class: HEAPSTATS
  21. //
  22. // Purpose: Data structure containing performance counters from the heap.
  23. // Used in our version of operator new.
  24. // See common\src\except\memory.cxx.
  25. //
  26. //--------------------------------------------------------------------------
  27. typedef struct _HeapStats
  28. {
  29. ULONG cNew;
  30. ULONG cZeroNew;
  31. ULONG cDelete;
  32. ULONG cZeroDelete;
  33. ULONG cRealloc;
  34. ULONG cbNewed;
  35. ULONG cbDeleted;
  36. } HEAPSTATS;
  37. //
  38. // GetHeapStats is in memory.cxx
  39. //
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. void GetHeapStats(HEAPSTATS * hsStats);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #endif
  48. #endif