summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf/mem_usage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/perf/mem_usage.cc')
-rw-r--r--chrome/test/perf/mem_usage.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/test/perf/mem_usage.cc b/chrome/test/perf/mem_usage.cc
index 369295e..c0c4e4d 100644
--- a/chrome/test/perf/mem_usage.cc
+++ b/chrome/test/perf/mem_usage.cc
@@ -71,9 +71,10 @@ size_t GetSystemCommitCharge() {
SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
- PERFORMANCE_INFORMATION info;
- if (GetPerformanceInfo(&info, sizeof(info)))
- return info.CommitTotal * system_info.dwPageSize;
+ // TODO(mbelshe): This does not work on win2k.
+ // PERFORMANCE_INFORMATION info;
+ // if (GetPerformanceInfo(&info, sizeof(info)))
+ // return info.CommitTotal * system_info.dwPageSize;
return -1;
}