shengine pre-release
shengine by mrsinho
Loading...
Searching...
No Matches
shProfiling.c File Reference
#include <GLFW/glfw3.h>
#include "shengine/shEngine.h"
#include "shengine/shProfiling.h"
#include <stdlib.h>
#include <string.h>

Macros

#define GLFW_INCLUDE_NONE
 

Functions

uint8_t shProfilingTimerStart (ShProfilingTimer *p_timer, ShProfilingTimerType type)
 Starts the specified profiling timer.
 
uint8_t shProfilingTimerEnd (ShProfilingTimer *p_timer, ShProfilingTimerType type)
 Ends the specified profiling timer.
 
uint8_t shProfilingTimerSetExtCount (ShProfilingTimer *p_timer, uint32_t ext_count)
 Sets the count of extension timers in the ShProfilingTimer structure.
 
uint8_t shProfilingTimerStartExt (ShProfilingTimer *p_timer, SmdVarName name, uint32_t timer_idx)
 Starts an extension profiling timer with the specified name and index.
 
uint8_t shProfilingTimerEndExt (ShProfilingTimer *p_timer, uint32_t timer_idx)
 Ends an extension profiling timer with the specified index.
 

Macro Definition Documentation

◆ GLFW_INCLUDE_NONE

#define GLFW_INCLUDE_NONE

Function Documentation

◆ shProfilingTimerEnd()

uint8_t shProfilingTimerEnd ( ShProfilingTimer p_timer,
ShProfilingTimerType  type 
)

Ends the specified profiling timer.

Parameters
p_timerPointer to a valid ShProfilingTimer structure.
typeType of the profiling timer to end.
Returns
1 on success, 0 on failure.

◆ shProfilingTimerEndExt()

uint8_t shProfilingTimerEndExt ( ShProfilingTimer p_timer,
uint32_t  timer_idx 
)

Ends an extension profiling timer with the specified index.

Parameters
p_timerPointer to a valid ShProfilingTimer structure.
timer_idxIndex of the extension timer.
Returns
1 on success, 0 on failure.

◆ shProfilingTimerSetExtCount()

uint8_t shProfilingTimerSetExtCount ( ShProfilingTimer p_timer,
uint32_t  ext_count 
)

Sets the count of extension timers in the ShProfilingTimer structure.

Parameters
p_timerPointer to a valid ShProfilingTimer structure.
ext_countCount of extension timers.
Returns
1 on success, 0 on failure.

◆ shProfilingTimerStart()

uint8_t shProfilingTimerStart ( ShProfilingTimer p_timer,
ShProfilingTimerType  type 
)

Starts the specified profiling timer.

Parameters
p_timerPointer to a valid ShProfilingTimer structure.
typeType of the profiling timer to start.
Returns
1 on success, 0 on failure.

◆ shProfilingTimerStartExt()

uint8_t shProfilingTimerStartExt ( ShProfilingTimer p_timer,
SmdVarName  name,
uint32_t  timer_idx 
)

Starts an extension profiling timer with the specified name and index.

Parameters
p_timerPointer to a valid ShProfilingTimer structure.
nameName of the extension timer.
timer_idxIndex of the extension timer.
Returns
1 on success, 0 on failure.