2018-08-16 16:51:15 +00:00
|
|
|
#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();
|