InternalProfiler.h 985 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #define ENABLE_INTERNAL_PROFILER 0
  3. // 4.x ENABLE_BLOCK_ON_GPU_PROFILER and 5.x ENABLE_GPU_TIMING were removed in favor of using xcode tools
  4. // INCLUDE_OPENGLES_IN_RENDER_TIME was removed
  5. #if ENABLE_INTERNAL_PROFILER
  6. void Profiler_InitProfiler();
  7. void Profiler_UninitProfiler();
  8. void Profiler_FrameStart();
  9. void Profiler_FrameEnd();
  10. void Profiler_FramePresent(const UnityFrameStats*);
  11. void Profiler_StartMSAAResolve();
  12. void Profiler_EndMSAAResolve();
  13. #else
  14. inline void Profiler_InitProfiler() {}
  15. inline void Profiler_UninitProfiler() {}
  16. inline void Profiler_FrameStart() {}
  17. inline void Profiler_FrameEnd() {}
  18. inline void Profiler_FramePresent(const struct UnityFrameStats*) {}
  19. inline void Profiler_StartMSAAResolve() {}
  20. inline void Profiler_EndMSAAResolve() {}
  21. #endif // ENABLE_INTERNAL_PROFILER