Have memory counters normally turned off, to avoid cross-windows-platform linking problems.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28078 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-09-12 17:25:16 +00:00
parent 01fd50e4f2
commit cf74ae1b2d
5 changed files with 33 additions and 12 deletions

View file

@ -134,9 +134,13 @@ void OS_Sleep(int milliseconds)
void OS_DumpMemoryCounters()
{
#ifdef DUMP_COUNTERS
PROCESS_MEMORY_COUNTERS counters;
GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters));
printf("Working set size: %d\n", counters.WorkingSetSize);
#else
printf("Recompile with DUMP_COUNTERS defined to see counters.\n");
#endif
}
} // namespace glslang