summaryrefslogtreecommitdiff
path: root/include/yasl/timing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/yasl/timing.h')
-rw-r--r--include/yasl/timing.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/include/yasl/timing.h b/include/yasl/timing.h
deleted file mode 100644
index 7e4af9e..0000000
--- a/include/yasl/timing.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * @file
- * Timing provenance, refresh estimates, and buffer-resize statistics.
- * All timestamps are monotonic nanoseconds, not wall-clock dates.
- */
-#ifndef YASL_TIMING_H
-#define YASL_TIMING_H
-
-#include <stdint.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** Cumulative backend buffer-resize measurements; unavailable counters are zero. */
-struct yasl_resize_stats {
- /** Number of measured buffer resizes. */
- uint64_t count;
- /** Mean measured resize duration in microseconds. */
- double avg_us;
- /** Maximum measured resize duration in microseconds. */
- double max_us;
- /** Backend minor page-fault counter, if collected. */
- long minflt;
-};
-
-/* Describes last_present_ns, not merely availability of an extension. */
-/** Provenance of last_present_ns; only PRESENTATION confirms compositor presentation. */
-enum yasl_timing_source {
- YASL_TIMING_UNKNOWN = 0, /**< No timing sample yet. */
- YASL_TIMING_SUBMISSION, /**< CPU submission time, not scanout confirmation. */
- YASL_TIMING_FRAME_CALLBACK, /**< Compositor pacing callback, not scanout confirmation. */
- YASL_TIMING_PRESENTATION, /**< Compositor-confirmed presentation. */
-};
-
-/** Snapshot of estimates and timing provenance. Zero timestamps mean no sample yet. */
-struct yasl_timing {
- /** Estimated refresh interval in nanoseconds; zero if unavailable. */
- double refresh_ns;
- /** Last timestamp, whose meaning is specified by source. */
- uint64_t last_present_ns;
- /** Estimated next presentation time, or zero without a prior sample. */
- uint64_t next_present_ns;
- /** Backend skipped-frame counter; not comparable across backends. */
- uint64_t frames_skipped;
- /** Provenance of last_present_ns. */
- enum yasl_timing_source source;
- /** Cumulative backend resize statistics. */
- struct yasl_resize_stats resize;
-};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* YASL_TIMING_H */