Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: chrome/test/memory_test/memory_test.cc

Issue 371025: More memory stats code cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: multiply uses by 1024 to keep stats consistent with old runs Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/memory_test/memory_test.cc
===================================================================
--- chrome/test/memory_test/memory_test.cc (revision 31329)
+++ chrome/test/memory_test/memory_test.cc (working copy)
@@ -18,7 +18,6 @@
#include "chrome/test/automation/window_proxy.h"
#include "chrome/test/chrome_process_util.h"
#include "chrome/test/ui/ui_test.h"
-#include "chrome/test/perf/mem_usage.h"
#include "googleurl/src/gurl.h"
#include "net/base/net_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -135,7 +134,7 @@
// Record the initial CommitCharge. This is a system-wide measurement,
// so if other applications are running, they can create variance in this
// test.
- size_t start_size = GetSystemCommitCharge();
+ size_t start_size = base::GetSystemCommitCharge();
// Cycle through the URLs.
scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
@@ -221,8 +220,8 @@
PlatformThread::Sleep(100);
}
- size_t stop_size = GetSystemCommitCharge();
- PrintResults(test_name, stop_size - start_size);
+ size_t stop_size = base::GetSystemCommitCharge();
+ PrintResults(test_name, (stop_size - start_size) / 1024);
}
void PrintResults(const char* test_name, size_t commit_size) {
« base/process_util_win.cc ('K') | « chrome/chrome.gyp ('k') | chrome/test/perf/mem_usage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698