mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-19 19:55:16 -04:00
UI: Add stats dialog
Shows performance stats, and streaming/recording stats, and helps warn the user when they have less-than-optimal values with coloring on the values (e.g. yellow when getting low on disk space, red when getting really low)
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "window-basic-auto-config.hpp"
|
||||
#include "window-basic-source-select.hpp"
|
||||
#include "window-basic-main.hpp"
|
||||
#include "window-basic-stats.hpp"
|
||||
#include "window-basic-main-outputs.hpp"
|
||||
#include "window-basic-properties.hpp"
|
||||
#include "window-log-reply.hpp"
|
||||
@@ -2866,6 +2867,8 @@ void OBSBasic::CloseDialogs()
|
||||
delete projector;
|
||||
projector.clear();
|
||||
}
|
||||
|
||||
delete stats;
|
||||
}
|
||||
|
||||
void OBSBasic::EnumDialogs()
|
||||
@@ -5486,3 +5489,13 @@ void OBSBasic::on_autoConfigure_triggered()
|
||||
test.show();
|
||||
test.exec();
|
||||
}
|
||||
|
||||
void OBSBasic::on_stats_triggered()
|
||||
{
|
||||
stats.clear();
|
||||
OBSBasicStats *statsDlg;
|
||||
statsDlg = new OBSBasicStats(nullptr);
|
||||
statsDlg->setModal(false);
|
||||
statsDlg->show();
|
||||
stats = statsDlg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user