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.

52 lines
1.2 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1992
  6. //
  7. // File: SPDebug.h
  8. //
  9. // Contents: Debug functions
  10. //
  11. //
  12. // History: 10 Sep 92 RichardW Created
  13. //
  14. //------------------------------------------------------------------------
  15. #if DBG
  16. #define SPM_DBG_GETDEBUGLEVEL 1
  17. #define SPM_DBG_SETDEBUGLEVEL 2
  18. #define SPM_DBG_MEMORYUSE 3
  19. #define SPM_DBG_BREAK 4
  20. #define SPM_DBG_TRACEMEM 5
  21. #define SPM_DBG_FAILMEM 6
  22. typedef struct _SpmDbg_Memory_Detail {
  23. unsigned long PackageID;
  24. unsigned long HeapUse;
  25. unsigned long HeapHW;
  26. } SpmDbg_Memory_Detail;
  27. typedef struct _SpmDbg_MemoryUse {
  28. unsigned long DetailCount;
  29. SpmDbg_Memory_Detail Details[1];
  30. } SpmDbg_MemoryUse, *PSpmDbg_MemoryUse;
  31. typedef struct _SpmDbg_MemoryFailure {
  32. ULONG FailureInterval;
  33. ULONG FailureDelay;
  34. ULONG FailureLength;
  35. BOOLEAN fSimulateFailure;
  36. } SpmDbg_MemoryFailure, *PSpmDbg_MemoryFailure;
  37. #endif
  38. #define SPM_SET_PERFORMANCE_FILE 10
  39. #define SPM_GET_GLUON_INFO 11
  40. #define SPM_SNAPSHOT_SESSIONS 12
  41. #define SPM_GET_API_PERFORMANCE 13