5#include <QtCore/QElapsedTimer>
6#include <QtCore/qglobal.h>
80 return counters[std::size_t(path)][std::size_t(counter)];
HwVideoBufferPath
GPU zero-copy path a frame is imported through; None means the frame takes the CPU path.
ScopedMapTimer(HwVideoBufferPath path) noexcept
ScopedMapTimer & operator=(const ScopedMapTimer &)=delete
~ScopedMapTimer() noexcept
ScopedMapTimer(const ScopedMapTimer &)=delete
Counter
Per-path event counts.
@ GpuWaits
GPU-side waits on the producer's writes before sampling a frame.
@ CpuWaits
CPU-blocking waits on the producer's writes before sampling a frame.
@ MapFailures
mapTextures() returned an invalid bundle (GPU import failed).
@ TextureReuse
Prior frame's QRhiTexture wrappers reused (decoder pool returned same native handle).
void recordFallbackReason(HwVideoBufferPath attemptedPath, HwFallbackReason reason) noexcept
Per-(path,reason) fallback accounting; lets a bug report show why a path demoted to CPU.
void recordMapDuration(HwVideoBufferPath path, qint64 nsecs) noexcept
Per-path mapTextures() wall-time, fed into an EWMA; peek returns the smoothed value in microseconds.
void record(HwVideoBufferPath path, Counter counter) noexcept
quint64 peekMapDurationUsEwma(HwVideoBufferPath path) noexcept
Snapshot snapshot() noexcept
HwFallbackReason
Specific cause a GPU path was rejected for a sample; surfaced as a per-(path,reason) breakdown.
constexpr std::size_t kPathCount
Every counter and fallback reason at one instant; a reader's baseline for counts since then.
std::array< std::array< quint64, std::size_t(HwFallbackReason::Count)>, GstHw::kPathCount > fallbackReasons
quint64 count(HwVideoBufferPath path, Counter counter) const noexcept
quint64 count(HwVideoBufferPath path, HwFallbackReason reason) const noexcept
std::array< std::array< quint64, std::size_t(Counter::Count)>, GstHw::kPathCount > counters