44 HANDLE hProcess = GetCurrentProcess();
45 PROCESS_MEMORY_COUNTERS processMemoryCounters;
46 GetProcessMemoryInfo(hProcess, &processMemoryCounters,
sizeof(processMemoryCounters));
47 startMaxRSS = processMemoryCounters.PeakWorkingSetSize / 1000;
50 getrusage(RUSAGE_SELF, &ru);
59 HANDLE hProcess = GetCurrentProcess();
60 PROCESS_MEMORY_COUNTERS processMemoryCounters;
61 GetProcessMemoryInfo(hProcess, &processMemoryCounters,
sizeof(processMemoryCounters));
62 size_t endMaxRSS = processMemoryCounters.PeakWorkingSetSize / 1000;
65 getrusage(RUSAGE_SELF, &ru);
66 size_t endMaxRSS = ru.ru_maxrss;
77 std::function<size_t()>
size;