Leaked source code of windows server 2003
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.

63 lines
1.0 KiB

  1. /*++
  2. Copyright (C) 1995-1999 Microsoft Corporation
  3. Module Name:
  4. appmema.h
  5. Abstract:
  6. application memory performance counter definitions
  7. --*/
  8. #ifndef _APPMEMA_H_
  9. #define _APPMEMA_H_
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #ifdef DO_TIMING_BUILD
  14. #include ".\perfdll\perfdll\appmemi.h"
  15. extern struct _APPMEM_DATA_HEADER *pDataHeader;
  16. extern struct _APPMEM_INSTANCE *pAppData;
  17. #define IncrementAppPerfDwordData(dwItemId) pAppData->DwordData[dwItemId]++;
  18. BOOL
  19. __stdcall
  20. AppPerfOpen(HINSTANCE hInstance);
  21. BOOL
  22. __stdcall
  23. AppPerfClose(HINSTANCE hInstance);
  24. void
  25. UpdateAppPerfTimeData (
  26. DWORD dwItemId,
  27. DWORD dwStage
  28. );
  29. void
  30. UpdateAppPerfDwordData (
  31. DWORD dwItemId,
  32. DWORD dwValue
  33. );
  34. #else
  35. // a regular build
  36. #define AppPerfOpen(x)
  37. #define AppPerfClose(x)
  38. #define UpdateAppPerfTimeData(x,y)
  39. #define UpdateAppPerfDwordData(x,y)
  40. #define IncrementAppPerfDwordData(x)
  41. #endif
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif // _APPMEMA_H_