$darkmode
Macros | |
| #define | HYBRID_STOP_BODY(log_fn) |
| #define | TRACY_HYBRID_STOP_PREAMBLE(timer) ((void)0) |
| #define | TRACY_HYBRID_STOP_SYNC_END() ((void)0) |
| #define | TRACY_HYBRID_STOP_POSTAMBLE(timer, label, cpu_ms, gpu_ms) ((void)0) |
Enumerations | |
| enum | TimeConversionFactors { NS_PER_MS = 1000000 , NS_PER_US = 1000 , NS_PER_S = 1000000000 , US_PER_S = 1000000 , MS_PER_S = 1000 , LABEL_BUFFER_SIZE = 128 } |
Functions | |
| void | perf_timer_start (PerfTimer *timer) |
| Starts the CPU timer. More... | |
| double | perf_timer_elapsed_ms (PerfTimer *timer) |
| Stops the timer and returns elapsed time in milliseconds. More... | |
| double | perf_timer_elapsed_us (PerfTimer *timer) |
| Stops the timer and returns elapsed time in microseconds. More... | |
| double | perf_timer_elapsed_s (PerfTimer *timer) |
| Stops the timer and returns elapsed time in seconds. More... | |
| void | gpu_timer_start (GPUTimer *timer) |
| Initializes and starts a GPU measurement. More... | |
| double | gpu_timer_elapsed_ms (GPUTimer *timer, int wait_for_result) |
| Stops the GPU timer and retrieves the result. More... | |
| void | gpu_timer_cleanup (GPUTimer *timer) |
| Releases OpenGL resources associated with the GPU timer. More... | |
| HybridTimer | perf_hybrid_start (void) |
| Starts both CPU and GPU measurement simultaneously. More... | |
| void | perf_hybrid_stop (HybridTimer *timer, const char *label) |
| Stops both measurements and logs the results to the console. More... | |
| double | perf_hybrid_stop_debug (HybridTimer *timer, const char *label) |
| Like perf_hybrid_stop, but logs at DEBUG level instead of INFO. More... | |
Variables | |
| static const double | NS_TO_MS = 1.0 / (double)NS_PER_MS |
| static const double | NS_TO_US = 1.0 / (double)NS_PER_US |
| static const double | NS_TO_S = 1.0 / (double)NS_PER_S |
| static const double | S_TO_MS = (double)MS_PER_S |
| static const double | S_TO_US = (double)US_PER_S |
| #define HYBRID_STOP_BODY | ( | log_fn | ) |
| #define TRACY_HYBRID_STOP_POSTAMBLE | ( | timer, | |
| label, | |||
| cpu_ms, | |||
| gpu_ms | |||
| ) | ((void)0) |
| #define TRACY_HYBRID_STOP_PREAMBLE | ( | timer | ) | ((void)0) |
| #define TRACY_HYBRID_STOP_SYNC_END | ( | ) | ((void)0) |
| void gpu_timer_cleanup | ( | GPUTimer * | timer | ) |
Releases OpenGL resources associated with the GPU timer.
| timer | Pointer to the timer. |
| double gpu_timer_elapsed_ms | ( | GPUTimer * | timer, |
| int | wait_for_result | ||
| ) |
Stops the GPU timer and retrieves the result.
| timer | Pointer to the timer. |
| wait_for_result | If true, blocks until the GPU is finished and result is ready. |
| void gpu_timer_start | ( | GPUTimer * | timer | ) |
Initializes and starts a GPU measurement.
| timer | Pointer to the timer. |
| HybridTimer perf_hybrid_start | ( | void | ) |
Starts both CPU and GPU measurement simultaneously.
| void perf_hybrid_stop | ( | HybridTimer * | timer, |
| const char * | label | ||
| ) |
Stops both measurements and logs the results to the console.
| timer | Pointer to the timer. |
| label | Descriptive string for the log entry. |
| double perf_hybrid_stop_debug | ( | HybridTimer * | timer, |
| const char * | label | ||
| ) |
Like perf_hybrid_stop, but logs at DEBUG level instead of INFO.
Tracy zones are still emitted at full detail. Only the console output is demoted to reduce noise in production. Returns GPU elapsed ms.
| timer | Pointer to the timer. |
| label | Descriptive string for the log entry. |
| double perf_timer_elapsed_ms | ( | PerfTimer * | timer | ) |
Stops the timer and returns elapsed time in milliseconds.
| timer | Pointer to the timer. |
| double perf_timer_elapsed_s | ( | PerfTimer * | timer | ) |
Stops the timer and returns elapsed time in seconds.
| timer | Pointer to the timer. |
| double perf_timer_elapsed_us | ( | PerfTimer * | timer | ) |
Stops the timer and returns elapsed time in microseconds.
| timer | Pointer to the timer. |
| void perf_timer_start | ( | PerfTimer * | timer | ) |
Starts the CPU timer.
| timer | Pointer to the timer. |
|
static |
|
static |
|
static |
|
static |
|
static |