diff options
author | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 06:57:28 +0000 |
---|---|---|
committer | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 06:57:28 +0000 |
commit | ed26d948be84443236a8a165ac2a3ccf63c2e02a (patch) | |
tree | a41de5ad3954557cbf9a7b0e1bc61c923fc05269 /chrome_frame/test/perf | |
parent | ad33fd4bdd8b7117e2644b34f553a2f14faea653 (diff) | |
download | chromium_src-ed26d948be84443236a8a165ac2a3ccf63c2e02a.zip chromium_src-ed26d948be84443236a8a165ac2a3ccf63c2e02a.tar.gz chromium_src-ed26d948be84443236a8a165ac2a3ccf63c2e02a.tar.bz2 |
More memory stats code cleanup:
Move GetSystemCommitCharge() into bsae\process_util*.
Kill PrintChromeMemoryUsageInfo(), which was only used by
reliability_tests.exe on Windows and whose stats are obsolete.
Delete the now-unnecessary chrome\test\perf\mem_usage* files.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/371025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/perf')
-rw-r--r-- | chrome_frame/test/perf/chrome_frame_perftest.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome_frame/test/perf/chrome_frame_perftest.cc b/chrome_frame/test/perf/chrome_frame_perftest.cc index 968bb6d..d93ebd5 100644 --- a/chrome_frame/test/perf/chrome_frame_perftest.cc +++ b/chrome_frame/test/perf/chrome_frame_perftest.cc @@ -23,7 +23,6 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_paths_internal.h" #include "chrome/test/chrome_process_util.h" -#include "chrome/test/perf/mem_usage.h" #include "chrome/test/ui/ui_test.h" #include "chrome_frame/test_utils.h" @@ -580,7 +579,7 @@ class ChromeFrameMemoryTest : public ChromeFramePerfTestBase { // Record the initial CommitCharge. This is a system-wide measurement, // so if other applications are running, they can create variance in this // test. - start_commit_charge_ = GetSystemCommitCharge(); + start_commit_charge_ = base::GetSystemCommitCharge(); for (int i = 0; i < total_urls; i++) urls_.push_back(urls[i]); @@ -690,8 +689,8 @@ class ChromeFrameMemoryTest : public ChromeFramePerfTestBase { // chrome processes which would have exited by now. Sleep(200); - size_t end_commit_charge = GetSystemCommitCharge(); - size_t commit_size = end_commit_charge - start_commit_charge_; + size_t end_commit_charge = base::GetSystemCommitCharge(); + size_t commit_size = (end_commit_charge - start_commit_charge_) * 1024; std::string trace_name(test_name); trace_name.append("_cc"); @@ -764,7 +763,7 @@ class ChromeFrameMemoryTest : public ChromeFramePerfTestBase { ASSERT_FALSE(false); } - // Holds the commit charge at the start of the memory test run. + // Holds the commit charge in KBytes at the start of the memory test run. size_t start_commit_charge_; // The index of the URL being tested. |