Skip to content

Commit

Permalink
Debug names for SIMUL_COMBINED_PROFILE.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRichards-Code committed Sep 19, 2024
1 parent c7c4be2 commit 68c82de
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CrossPlatform/GpuProfiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ namespace platform
}

#ifdef PLATFORM_INTERNAL_PROFILING

//Debug SIMUL_COMBINED_PROFILE
//inline std::stack<std::string> names;

#define SIMUL_GPU_PROFILE_STARTFRAME(ctx) \
{platform::crossplatform::GpuProfilingInterface *gpuProfilingInterface=platform::crossplatform::GetGpuProfilingInterface(ctx); \
if(gpuProfilingInterface) \
Expand All @@ -160,10 +162,15 @@ namespace platform

#define SIMUL_COMBINED_PROFILE_START(ctx,name) \
SIMUL_GPU_PROFILE_START(ctx,name) \
SIMUL_PROFILE_START(name)
SIMUL_PROFILE_START(name) //\
//PLATFORM_WARN("Start: {}", name);\
//names.push(name);

#define SIMUL_COMBINED_PROFILE_END(ctx) \
SIMUL_PROFILE_END \
SIMUL_GPU_PROFILE_END(ctx)
SIMUL_GPU_PROFILE_END(ctx) //\
//PLATFORM_WARN("End: {}", names.top()); \
//names.pop();

#define SIMUL_COMBINED_PROFILE_STARTFRAME(ctx) \
SIMUL_GPU_PROFILE_STARTFRAME(ctx) \
Expand Down

0 comments on commit 68c82de

Please sign in to comment.