microprofile.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. // Uncomment this to disable microprofile. This will get you cleaner profiles when using
  6. // external sampling profilers like "Very Sleepy", and will improve performance somewhat.
  7. // #define MICROPROFILE_ENABLED 0
  8. // Customized Citra settings.
  9. // This file wraps the MicroProfile header so that these are consistent everywhere.
  10. #define MICROPROFILE_WEBSERVER 0
  11. #define MICROPROFILE_GPU_TIMERS 0 // TODO: Implement timer queries when we upgrade to OpenGL 3.3
  12. #define MICROPROFILE_CONTEXT_SWITCH_TRACE 0
  13. #define MICROPROFILE_PER_THREAD_BUFFER_SIZE (2048 << 13) // 16 MB
  14. #ifdef _WIN32
  15. // This isn't defined by the standard library in MSVC2015
  16. typedef void* HANDLE;
  17. #endif
  18. #include <microprofile.h>
  19. #define MP_RGB(r, g, b) ((r) << 16 | (g) << 8 | (b) << 0)
  20. // On OS X, some Mach header included by MicroProfile defines these as macros, conflicting with
  21. // identifiers we use.
  22. #ifdef PAGE_SIZE
  23. #undef PAGE_SIZE
  24. #endif
  25. #ifdef PAGE_MASK
  26. #undef PAGE_MASK
  27. #endif