UI: Add memory usage to Stats window on linux/mac

Closes jp9000/obs-studio#953
This commit is contained in:
mntone
2017-09-12 01:56:40 -07:00
committed by jp9000
parent a6318ffdca
commit 9ffdaff984
3 changed files with 1 additions and 20 deletions
-12
View File
@@ -30,7 +30,6 @@ using namespace std;
#include <shellapi.h>
#include <shlobj.h>
#include <Dwmapi.h>
#include <psapi.h>
#include <mmdeviceapi.h>
#include <audiopolicy.h>
@@ -264,17 +263,6 @@ bool DisableAudioDucking(bool disable)
return SUCCEEDED(result);
}
uint64_t CurrentMemoryUsage()
{
PROCESS_MEMORY_COUNTERS pmc = {};
pmc.cb = sizeof(pmc);
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc)))
return 0;
return (uint64_t)pmc.WorkingSetSize;
}
struct RunOnceMutexData {
WinHandle handle;