Chromium Code Reviews| Index: chrome/test/perf/browser_perf_test.cc |
| diff --git a/chrome/test/perf/browser_perf_test.cc b/chrome/test/perf/browser_perf_test.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..792f80259fd4974bb0f4c443a0db6595c790ee0e |
| --- /dev/null |
| +++ b/chrome/test/perf/browser_perf_test.cc |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/test/perf/browser_perf_test.h" |
| + |
| +#include "base/command_line.h" |
| +#include "base/process_util.h" |
| +#include "chrome/common/chrome_switches.h" |
| +#include "chrome/test/base/chrome_process_util.h" |
| +//#include "chrome/test/perf/perf_test.h" |
|
cmp
2011/12/20 23:44:51
please uncomment
jbates
2011/12/21 00:39:59
Done.
|
| + |
| +BrowserPerfTest::BrowserPerfTest() { |
| +} |
| + |
| +BrowserPerfTest::~BrowserPerfTest() { |
| +} |
| + |
| +void BrowserPerfTest::SetUpCommandLine(CommandLine* command_line) { |
| + // Reduce performance test variance by disabling background networking. |
| + command_line->AppendSwitch(switches::kDisableBackgroundNetworking); |
| +} |
| + |
| +void BrowserPerfTest::PrintIOPerfInfo(const char* test_name) { |
| + base::ProcessId browser_pid = base::GetCurrentProcId(); |
| + ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid)); |
| +//perf_test::PrintIOPerfInfo(test_name, chrome_processes, browser_pid); |
|
cmp
2011/12/20 23:44:51
this should be uncommented
jbates
2011/12/21 00:39:59
Done.
|
| +} |
| + |
| +void BrowserPerfTest::PrintMemoryUsageInfo(const char* test_name) { |
| + base::ProcessId browser_pid = base::GetCurrentProcId(); |
| + ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid)); |
| +//perf_test::PrintMemoryUsageInfo(test_name, chrome_processes, browser_pid); |
|
cmp
2011/12/20 23:44:51
this should be uncommented
jbates
2011/12/21 00:39:59
Done.
|
| +} |