The MonitorTab class provides live per-stream bandwidth charts and system CPU usage monitoring in GNOME System Monitor style.
More...
#include <monitor_tab.h>
|
|
void | updateMonitor () |
| | Called every second to refresh all charts and tables.
|
|
|
void | setupBandwidthChart () |
| | Initialise the bandwidth chart.
|
|
void | setupCpuChart () |
| | Initialise the CPU chart.
|
|
void | updateBandwidth () |
| | Poll SAP receive players and RTP transmit streams, update bandwidth chart & table.
|
|
void | updateCpu () |
| | Read /proc/stat and update CPU chart & table.
|
|
QLineSeries * | getOrCreateSeries (const QString &key, const QString &label) |
| | Get or create a bandwidth series for the given key.
|
|
void | pruneInactiveSeries (const QSet< QString > &activeKeys) |
| | Remove stale series that are no longer active.
|
|
CpuSnapshot | readCpuSnapshot () |
|
QColor | nextColour () |
|
|
Ui::Dialog & | m_ui |
|
toolx::streams::StreamManager * | m_streamManager = nullptr |
|
QTimer | m_timer |
|
int | m_elapsed = 0 |
| | seconds since monitoring started (x-axis)
|
|
QChart * | m_bwChart = nullptr |
|
QChartView * | m_bwChartView = nullptr |
|
QValueAxis * | m_bwAxisX = nullptr |
|
QValueAxis * | m_bwAxisY = nullptr |
|
QMap< QString, QLineSeries * > | m_bwSeries |
| | key → series
|
|
QMap< QString, uint64_t > | m_prevBytes |
| | key → previous byte snapshot
|
|
QChart * | m_cpuChart = nullptr |
|
QChartView * | m_cpuChartView = nullptr |
|
QValueAxis * | m_cpuAxisX = nullptr |
|
QValueAxis * | m_cpuAxisY = nullptr |
|
QMap< QString, QLineSeries * > | m_cpuSeries |
|
CpuSnapshot | m_prevCpu |
|
QVector< QColor > | m_palette |
|
int | m_nextColour = 0 |
|
|
static constexpr int | kBwWindowSecs = 60 |
| | rolling window length
|
|
static constexpr int | kCpuWindowSecs = 60 |
The MonitorTab class provides live per-stream bandwidth charts and system CPU usage monitoring in GNOME System Monitor style.
◆ MonitorTab()
Construct a new MonitorTab object.
- Parameters
-
| ui | Reference to the main UI |
| streamManager | Pointer to the RTP stream manager (may be nullptr if MediaX disabled) |
| parent | Optional parent widget |
The documentation for this class was generated from the following files: