QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwPathTelemetry.cc File Reference
#include "GstHwPathTelemetry.h"
#include <array>
#include <atomic>
+ Include dependency graph for GstHwPathTelemetry.cc:

Go to the source code of this file.

Namespaces

namespace  GstHwPathTelemetry
 

Functions

void GstHwPathTelemetry::recordMapFailure (HwVideoBufferPath path) noexcept
 mapTextures() returned an invalid bundle (GPU import failed).
 
quint64 GstHwPathTelemetry::takeMapFailureCount (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::peekMapFailureCount (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordTextureReuse (HwVideoBufferPath path) noexcept
 Prior frame's QRhiTexture wrappers reused (decoder pool returned same native handle).
 
quint64 GstHwPathTelemetry::takeTextureReuseHits (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordSyncWait (HwVideoBufferPath path, bool gpuSide) noexcept
 GL fence sync wait; split CPU-blocking vs GPU-side.
 
quint64 GstHwPathTelemetry::takeSyncWaitCounts (HwVideoBufferPath path, quint64 &gpuWaits) noexcept
 Reads-and-resets CPU waits; writes GPU waits into gpuWaits.
 
void GstHwPathTelemetry::recordImageCacheHit (HwVideoBufferPath path) noexcept
 Native image/texture cache hit/miss accounting.
 
void GstHwPathTelemetry::recordImageCacheMiss (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::takeImageCacheHits (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::takeImageCacheMisses (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordDelivered (HwVideoBufferPath path) noexcept
 Frames successfully delivered via this path.
 
quint64 GstHwPathTelemetry::peekDeliveredCount (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::takeDeliveredCount (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordMapDuration (HwVideoBufferPath path, qint64 nsecs) noexcept
 Per-path mapTextures() wall-time, fed into an EWMA; peek returns the smoothed value in microseconds.
 
quint64 GstHwPathTelemetry::peekMapDurationUsEwma (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordFenceTimeout (HwVideoBufferPath path) noexcept
 DMABuf EGL fence wait timed out (GPU stall) and fell through to the mmap barrier.
 
quint64 GstHwPathTelemetry::peekFenceTimeouts (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::takeFenceTimeouts (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordMmapBarrierHit (HwVideoBufferPath path) noexcept
 DMABuf mmap CPU-side completion barrier taken (no usable fence ext).
 
quint64 GstHwPathTelemetry::peekMmapBarrierHits (HwVideoBufferPath path) noexcept
 
quint64 GstHwPathTelemetry::takeMmapBarrierHits (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordExplicitFenceWait (HwVideoBufferPath path) noexcept
 DMABuf imported the producer's dma-buf/native fence and did a GPU-side wait (skipped the mmap barrier).
 
quint64 GstHwPathTelemetry::takeExplicitFenceWaits (HwVideoBufferPath path) noexcept
 
void GstHwPathTelemetry::recordFallbackReason (HwVideoBufferPath attemptedPath, HwFallbackReason reason) noexcept
 Per-(path,reason) fallback accounting; lets a bug report show why a path demoted to CPU.
 
quint64 GstHwPathTelemetry::peekFallbackReason (HwVideoBufferPath attemptedPath, HwFallbackReason reason) noexcept
 
quint64 GstHwPathTelemetry::takeFallbackReason (HwVideoBufferPath attemptedPath, HwFallbackReason reason) noexcept
 
void GstHwPathTelemetry::recordStreamDemotion (HwVideoBufferPath negotiated) noexcept
 One-shot-per-epoch event: a stream that negotiated a HW path demoted to CPU. Distinct from per-frame CPU counts.
 
quint64 GstHwPathTelemetry::takeStreamDemotions (HwVideoBufferPath negotiated) noexcept
 

Variable Documentation

◆ delivered

std::atomic<quint64> delivered {0}

◆ explicitFenceWaits

std::atomic<quint64> explicitFenceWaits {0}

Definition at line 24 of file GstHwPathTelemetry.cc.

◆ fenceTimeouts

std::atomic<quint64> fenceTimeouts {0}

Definition at line 22 of file GstHwPathTelemetry.cc.

◆ imageCacheHits

std::atomic<quint64> imageCacheHits {0}

Definition at line 18 of file GstHwPathTelemetry.cc.

◆ imageCacheMisses

std::atomic<quint64> imageCacheMisses {0}

Definition at line 19 of file GstHwPathTelemetry.cc.

◆ mapDurationUsEwma

std::atomic<quint64> mapDurationUsEwma {0}

Definition at line 21 of file GstHwPathTelemetry.cc.

◆ mapFailures

std::atomic<quint64> mapFailures {0}

Definition at line 14 of file GstHwPathTelemetry.cc.

◆ mmapBarrierHits

std::atomic<quint64> mmapBarrierHits {0}

Definition at line 23 of file GstHwPathTelemetry.cc.

◆ streamDemotions

std::atomic<quint64> streamDemotions {0}

Definition at line 25 of file GstHwPathTelemetry.cc.

◆ syncCpuWaits

std::atomic<quint64> syncCpuWaits {0}

Definition at line 16 of file GstHwPathTelemetry.cc.

◆ syncGpuWaits

std::atomic<quint64> syncGpuWaits {0}

Definition at line 17 of file GstHwPathTelemetry.cc.

◆ textureReuseHits

std::atomic<quint64> textureReuseHits {0}

Definition at line 15 of file GstHwPathTelemetry.cc.