| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#ifndef PERF_JSON_H |
| 7 |
#define PERF_JSON_H |
| 8 |
|
| 9 |
#include <stdbool.h> |
| 10 |
#include <stddef.h> |
| 11 |
#include <cjson/cJSON.h> |
| 12 |
|
| 13 |
#include "perf_budget.h" |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
cJSON *perf_json_stat(const perf_stat_t *s); |
| 20 |
|
| 21 |
void perf_json_window_name(float seconds, char *out, size_t outsz); |
| 22 |
|
| 23 |
float perf_json_window_seconds(const cJSON *item); |
| 24 |
|
| 25 |
|
| 26 |
cJSON *perf_json_window(float seconds); |
| 27 |
cJSON *perf_json_budget(void); |
| 28 |
cJSON *perf_json_frame(const perf_frame_t *f); |
| 29 |
|
| 30 |
|
| 31 |
cJSON *perf_json_bandwidth(void); |
| 32 |
cJSON *perf_json_bandwidth_lines(void); |
| 33 |
|
| 34 |
|
| 35 |
cJSON *perf_json_sprites(bool lines); |
| 36 |
|
| 37 |
#ifdef __cplusplus |
| 38 |
} |
| 39 |
#endif |
| 40 |
|
| 41 |
#endif |