Add function to main window to query CPU usage

This commit is contained in:
jp9000
2014-07-06 16:18:16 -07:00
parent 0364672cbb
commit a9b3da010d
2 changed files with 12 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ OBSBasic::OBSBasic(QWidget *parent)
this,
SLOT(SceneItemNameEdited(QWidget*,
QAbstractItemDelegate::EndEditHint)));
cpuUsageInfo = os_cpu_usage_info_start();
}
static void SaveAudioDevice(const char *name, int channel, obs_data_t parent)
@@ -550,6 +552,8 @@ OBSBasic::~OBSBasic()
* can be freed, and we have no control over the destruction order of
* the Qt UI stuff, so we have to manually clear any references to
* libobs. */
os_cpu_usage_info_destroy(cpuUsageInfo);
delete properties;
delete transformWindow;