SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ProcessMemoryInUsed()

float Spices::ProcessLibrary::ProcessMemoryInUsed ( )
static

Get this Process Memory used( GB ).

Returns
Returns this Process Memory used( GB ).

Definition at line 67 of file ProcessLibrary.cpp.

68 {
70
71 PROCESS_MEMORY_COUNTERS pmc;
72 if (GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(pmc)))
73 {
74 return pmc.WorkingSetSize / 1024.0f / 1024.0f / 1024.0f; // GB.
75 }
76
77 return 0;
78 }
#define SPICES_PROFILE_ZONE

Referenced by Spices::ImguiFloatingInfo::OnRender(), and SpicesTest::TEST().