| 199 | } |
| 200 | |
| 201 | int64_t celero::GetRAMSystemUsedByCurrentProcess() |
| 202 | { |
| 203 | #ifdef _WIN32 |
| 204 | PROCESS_MEMORY_COUNTERS_EX pmc; |
| 205 | GetProcessMemoryInfo(GetCurrentProcess(), reinterpret_cast<PPROCESS_MEMORY_COUNTERS>(&pmc), sizeof(pmc)); |
| 206 | return static_cast<int64_t>(pmc.WorkingSetSize); |
| 207 | #else |
| 208 | return celero::GetRAMPhysicalUsedByCurrentProcess() + celero::GetRAMVirtualUsedByCurrentProcess(); |
| 209 | #endif |
| 210 | } |
| 211 | |
| 212 | int64_t celero::GetRAMPhysicalTotal() |
| 213 | { |
nothing calls this directly
no outgoing calls
no test coverage detected