Monado OpenXR Runtime
|
Metrics saving functions. More...
#include "os/os_threading.h"
#include "util/u_metrics.h"
#include "util/u_debug.h"
#include "monado_metrics.pb.h"
#include "pb_encode.h"
#include <stdio.h>
Functions | |
static void | write_record (monado_metrics_Record *r) |
static void | write_version (uint32_t major, uint32_t minor) |
void | u_metrics_init (void) |
void | u_metrics_close (void) |
bool | u_metrics_is_active (void) |
void | u_metrics_write_session_frame (struct u_metrics_session_frame *umsf) |
void | u_metrics_write_used (struct u_metrics_used *umu) |
void | u_metrics_write_system_frame (struct u_metrics_system_frame *umsf) |
void | u_metrics_write_system_gpu_info (struct u_metrics_system_gpu_info *umgi) |
void | u_metrics_write_system_present_info (struct u_metrics_system_present_info *umpi) |
Variables | |
static FILE * | g_file = NULL |
static struct os_mutex | g_file_mutex |
static bool | g_metrics_initialized = false |
static bool | g_metrics_early_flush = false |
Metrics saving functions.