GLdc/GL/profiler.h

19 lines
304 B
C
Raw Permalink Normal View History

#pragma once
#include <stdint.h>
typedef struct {
char name[64];
uint64_t start_time_in_us;
} Profiler;
Profiler* profiler_push(const char* name);
void profiler_checkpoint(const char* name);
void profiler_pop();
void profiler_print_stats();
2018-08-19 20:10:42 +00:00
void profiler_enable();
void profiler_disable();