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

Side by Side Diff: chrome/test/perf/browser_perf_test.cc

Issue 938603004: Cleanup: Remove chrome_perf_test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing testing/perf/perf_test.gyp dependency to browser_tests Created 5 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « chrome/test/perf/browser_perf_test.h ('k') | chrome/test/perf/perf_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/test/perf/browser_perf_test.h"
6
7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/test/base/chrome_process_util.h"
10 #include "chrome/test/perf/perf_test.h"
11
12 BrowserPerfTest::BrowserPerfTest() {
13 }
14
15 BrowserPerfTest::~BrowserPerfTest() {
16 }
17
18 void BrowserPerfTest::SetUpCommandLine(base::CommandLine* command_line) {
19 // Reduce performance test variance by disabling background networking.
20 command_line->AppendSwitch(switches::kDisableBackgroundNetworking);
21 }
22
23 void BrowserPerfTest::PrintIOPerfInfo(const std::string& test_name) {
24 base::ProcessId browser_pid = base::GetCurrentProcId();
25 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
26 perf_test::PrintIOPerfInfo(test_name, chrome_processes, browser_pid);
27 }
28
29 void BrowserPerfTest::PrintMemoryUsageInfo(const std::string& test_name) {
30 base::ProcessId browser_pid = base::GetCurrentProcId();
31 ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
32 perf_test::PrintMemoryUsageInfo(test_name, chrome_processes, browser_pid);
33 }
OLDNEW
« no previous file with comments | « chrome/test/perf/browser_perf_test.h ('k') | chrome/test/perf/perf_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698