SurfaceDataProfiler.h 780 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Debug/Profiler.h>
  10. AZ_DECLARE_BUDGET(SurfaceData);
  11. //#define ENABLE_SURFACE_DATA_PROFILE_VERBOSE
  12. #ifdef ENABLE_SURFACE_DATA_PROFILE_VERBOSE
  13. // Add verbose profile markers
  14. #define SURFACE_DATA_PROFILE_SCOPE_VERBOSE(...) AZ_PROFILE_SCOPE(SurfaceData, __VA_ARGS__);
  15. #define SURFACE_DATA_PROFILE_FUNCTION_VERBOSE AZ_PROFILE_FUNCTION(SurfaceData);
  16. #else
  17. // Define ENABLE_SURFACE_DATA_PROFILE_VERBOSE to get verbose profile markers
  18. #define SURFACE_DATA_PROFILE_SCOPE_VERBOSE(...)
  19. #define SURFACE_DATA_PROFILE_FUNCTION_VERBOSE
  20. #endif