QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstHwPathTelemetry.h File Reference
#include <array>
#include <QtCore/QElapsedTimer>
#include <QtCore/qglobal.h>
#include "GstHwTypes.h"
Include dependency graph for GstHwPathTelemetry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GstHwPathTelemetry::ScopedMapTimer
 RAII timer: records mapTextures() wall time into the path's EWMA on scope exit. More...
struct  GstHwPathTelemetry::Snapshot
 Every counter and fallback reason at one instant; a reader's baseline for counts since then. More...

Namespaces

namespace  GstHwPathTelemetry

Enumerations

enum class  GstHwPathTelemetry::HwFallbackReason {
  GstHwPathTelemetry::NoExt , GstHwPathTelemetry::EglBadMatch , GstHwPathTelemetry::ValidateFailed , GstHwPathTelemetry::UnknownMemType ,
  GstHwPathTelemetry::MapFailed , GstHwPathTelemetry::VulkanNoSync , GstHwPathTelemetry::ImportUnsupported , GstHwPathTelemetry::Count
}
 Specific cause a GPU path was rejected for a sample; surfaced as a per-(path,reason) breakdown. More...
enum class  GstHwPathTelemetry::Counter {
  GstHwPathTelemetry::MapFailures , GstHwPathTelemetry::TextureReuse , GstHwPathTelemetry::GpuWaits , GstHwPathTelemetry::CpuWaits ,
  GstHwPathTelemetry::ImageCacheHits , GstHwPathTelemetry::ImageCacheMisses , GstHwPathTelemetry::ProducerFenceTimeouts , GstHwPathTelemetry::Count
}
 Per-path event counts. More...

Functions

void GstHwPathTelemetry::record (HwVideoBufferPath path, Counter counter) 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::recordFallbackReason (HwVideoBufferPath attemptedPath, HwFallbackReason reason) noexcept
 Per-(path,reason) fallback accounting; lets a bug report show why a path demoted to CPU.
Snapshot GstHwPathTelemetry::snapshot () noexcept