lgui-diagnostics 0.2.2

Frame diagnostics contracts and collection for LGUI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::GpuUsageSnapshot;
use super::SystemUsageSnapshot;

pub fn system_usage_snapshot() -> SystemUsageSnapshot {
    SystemUsageSnapshot {
        schema: "lgui.diagnostics.system-usage.v1",
        gpu: GpuUsageSnapshot {
            status: "unsupported",
            ..GpuUsageSnapshot::default()
        },
        ..SystemUsageSnapshot::default()
    }
}

pub fn system_usage_sample_interval_ms() -> u64 {
    0
}