24#define SH_PROFILING_TIMER_MAX_EXT_COUNT 1024
#define SH_ENGINE_MAX_SWAPCHAIN_IMAGE_COUNT
Definition shEditor.c:20
#define SH_PROFILING_TIMER_MAX_EXT_COUNT
Maximum number of extension timers supported.
Definition shProfiling.h:24
uint8_t shProfilingTimerSetExtCount(ShProfilingTimer *p_timer, uint32_t ext_count)
Sets the count of extension timers in the ShProfilingTimer structure.
Definition shProfiling.c:94
uint8_t shProfilingTimerStartExt(ShProfilingTimer *p_timer, SmdVarName name, uint32_t timer_idx)
Starts an extension profiling timer with the specified name and index.
Definition shProfiling.c:111
uint8_t shProfilingTimerEndExt(ShProfilingTimer *p_timer, uint32_t timer_idx)
Ends an extension profiling timer with the specified index.
Definition shProfiling.c:130
ShProfilingTimerType
Types of profiling timers used by the shengine library.
Definition shProfiling.h:35
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_1
Definition shProfiling.h:41
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_0
Definition shProfiling.h:40
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_5
Definition shProfiling.h:45
@ SH_PROFILING_TIMER_MAX_ENUM
Definition shProfiling.h:48
@ SH_PROFILING_TIMER_APPLICATION_MAIN_CMD_BUFFER
Definition shProfiling.h:38
@ SH_PROFILING_TIMER_APPLICATION_MAIN_RENDERPASS
Definition shProfiling.h:39
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_3
Definition shProfiling.h:43
@ SH_PROFILING_TIMER_EXT
Definition shProfiling.h:47
@ SH_PROFILING_TIMER_APPLICATION_UPDATE
Definition shProfiling.h:37
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_6
Definition shProfiling.h:46
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_2
Definition shProfiling.h:42
@ SH_PROFILING_TIMER_MAIN_CMD_BUFFER_WAIT_4
Definition shProfiling.h:44
@ SH_PROFILING_TIMER_MAIN_THREAD
Definition shProfiling.h:36
uint8_t shProfilingTimerStart(ShProfilingTimer *p_timer, ShProfilingTimerType type)
Starts the specified profiling timer.
Definition shProfiling.c:20
uint8_t shProfilingTimerEnd(ShProfilingTimer *p_timer, ShProfilingTimerType type)
Ends the specified profiling timer.
Definition shProfiling.c:54
Structure to hold profiling timer information in ShEngine.
Definition shProfiling.h:61
double application_update_end_s
Definition shProfiling.h:73
double main_cmd_buffer_wait_end_s[SH_ENGINE_MAX_SWAPCHAIN_IMAGE_COUNT]
Definition shProfiling.h:85
double application_main_cmd_buffer_dtime_ms
Definition shProfiling.h:78
uint32_t ext_count
Definition shProfiling.h:88
double ext_end_s[SH_PROFILING_TIMER_MAX_EXT_COUNT]
Definition shProfiling.h:90
double main_cmd_buffer_wait_dtime_s[SH_ENGINE_MAX_SWAPCHAIN_IMAGE_COUNT]
Definition shProfiling.h:86
double application_main_cmd_buffer_end_s
Definition shProfiling.h:77
double application_main_cmd_buffer_start_s
Definition shProfiling.h:76
double main_thread_start_s
Definition shProfiling.h:64
double application_update_start_s
Definition shProfiling.h:72
double main_graphics_queue_end_s
Definition shProfiling.h:69
double ext_start_s[SH_PROFILING_TIMER_MAX_EXT_COUNT]
Definition shProfiling.h:89
SmdExportHandle export
Definition shProfiling.h:94
SmdVarName ext_names[SH_PROFILING_TIMER_MAX_EXT_COUNT]
Definition shProfiling.h:92
double main_thread_end_s
Definition shProfiling.h:65
double application_main_renderpass_dtime_ms
Definition shProfiling.h:82
double main_graphics_queue_start_s
Definition shProfiling.h:68
double ext_dtime_ms[SH_PROFILING_TIMER_MAX_EXT_COUNT]
Definition shProfiling.h:91
double main_graphics_queue_dtime_ms
Definition shProfiling.h:70
double application_main_renderpass_start_s
Definition shProfiling.h:80
double main_profiling_tool_last_time
Definition shProfiling.h:62
double application_main_renderpass_end_s
Definition shProfiling.h:81
double main_cmd_buffer_wait_start_s[SH_ENGINE_MAX_SWAPCHAIN_IMAGE_COUNT]
Definition shProfiling.h:84
double main_thread_dtime_ms
Definition shProfiling.h:66
double application_update_dtime_ms
Definition shProfiling.h:74