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.

50 lines
1.2 KiB

  1. /**************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * Memory allocation profiling support
  8. *
  9. * Abstract:
  10. *
  11. * Declares logging functions used for memory allocation profiling.
  12. * This is only enabled when PROFILE_MEMORY_USAGE is set.
  13. * See memcounter.cpp for more details.
  14. *
  15. * Notes:
  16. *
  17. * I've added calls to MC_LogAllocation to most of our allocation sites.
  18. * These are the omissions I'm aware of:
  19. * runtime\debug.cpp - it's chk only.
  20. * gpmf3216\* - (calls LocalAlloc) I think it's a separate lib.
  21. * entry\create.cpp - calls GlobalAlloc (a single tiny allocation).
  22. * imaging\pwc\pwclib - many calls to LocalAlloc.
  23. * text\uniscribe\usp10\usp_mem.cxx - DBrown says that GDI+ never this
  24. * allocation code.
  25. *
  26. * Created:
  27. *
  28. * 06/08/2000 agodfrey
  29. * Created it.
  30. *
  31. **************************************************************************/
  32. #ifndef _PROFILEMEM_H
  33. #define _PROFILEMEM_H
  34. #if PROFILE_MEMORY_USAGE
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. VOID _stdcall MC_LogAllocation(UINT size);
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif // PROFILE_MEMORY_USAGE
  43. #endif // _PROFILEMEM_H