profiler.h 406 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. typedef struct Profiler Profiler;
  6. Profiler* profiler_alloc();
  7. void profiler_free(Profiler* profiler);
  8. void profiler_prealloc(Profiler* profiler, const char* key);
  9. void profiler_start(Profiler* profiler, const char* key);
  10. void profiler_stop(Profiler* profiler, const char* key);
  11. void profiler_dump(Profiler* profiler);
  12. #ifdef __cplusplus
  13. }
  14. #endif