Commit 3849bd2b authored by tfarina's avatar tfarina Committed by Commit bot

Cleanup: Remove chrome_perf_test target.

And all the unused files under chrome/test/perf/.

BUG=None
TEST=everything still works + trybots
R=sky@chromium.org

Review URL: https://codereview.chromium.org/938603004

Cr-Commit-Position: refs/heads/master@{#319548}
parent 7eb9be56
......@@ -1189,8 +1189,6 @@
'test/base/browser_perf_tests_main.cc',
'test/base/chrome_render_view_test.cc',
'test/base/chrome_render_view_test.h',
'test/perf/browser_perf_test.cc',
'test/perf/browser_perf_test.h',
'test/perf/mach_ports_performancetest.cc',
'test/perf/url_parse_perftest.cc',
],
......@@ -1921,7 +1919,6 @@
'chrome_resources.gyp:packed_resources',
'common/extensions/api/api.gyp:chrome_api',
'renderer',
'test/perf/perf_test.gyp:*',
'test_support_common',
'test_support_sync_integration',
'../base/base.gyp:base',
......@@ -1950,6 +1947,7 @@
'../sync/sync.gyp:test_support_sync_api',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../testing/perf/perf_test.gyp:*',
'../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
......@@ -2436,7 +2434,6 @@
'chrome_resources.gyp:packed_extra_resources',
'chrome_resources.gyp:packed_resources',
'renderer',
'test/perf/perf_test.gyp:*',
'test_support_common',
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
......@@ -2784,7 +2781,6 @@
'target_name': 'sync_performance_tests',
'type': 'executable',
'dependencies': [
'test/perf/perf_test.gyp:*',
'test_support_sync_integration',
'../sync/sync.gyp:sync',
'../testing/gmock.gyp:gmock',
......
// Copyright (c) 2012 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 "chrome/common/chrome_switches.h"
#include "chrome/test/base/chrome_process_util.h"
#include "chrome/test/perf/perf_test.h"
BrowserPerfTest::BrowserPerfTest() {
}
BrowserPerfTest::~BrowserPerfTest() {
}
void BrowserPerfTest::SetUpCommandLine(base::CommandLine* command_line) {
// Reduce performance test variance by disabling background networking.
command_line->AppendSwitch(switches::kDisableBackgroundNetworking);
}
void BrowserPerfTest::PrintIOPerfInfo(const std::string& test_name) {
base::ProcessId browser_pid = base::GetCurrentProcId();
ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
perf_test::PrintIOPerfInfo(test_name, chrome_processes, browser_pid);
}
void BrowserPerfTest::PrintMemoryUsageInfo(const std::string& test_name) {
base::ProcessId browser_pid = base::GetCurrentProcId();
ChromeProcessList chrome_processes(GetRunningChromeProcesses(browser_pid));
perf_test::PrintMemoryUsageInfo(test_name, chrome_processes, browser_pid);
}
// Copyright (c) 2012 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.
#ifndef CHROME_TEST_PERF_BROWSER_PERF_TEST_H_
#define CHROME_TEST_PERF_BROWSER_PERF_TEST_H_
#include "chrome/test/base/in_process_browser_test.h"
namespace base {
class CommandLine;
}
class BrowserPerfTest : public InProcessBrowserTest {
public:
BrowserPerfTest();
~BrowserPerfTest() override;
// Set up common browser perf test flags. Typically call down to this if
// overridden.
void SetUpCommandLine(base::CommandLine* command_line) override;
// Prints IO performance data for use by perf graphs.
void PrintIOPerfInfo(const std::string& test_name);
// Prints memory usage data for use by perf graphs.
void PrintMemoryUsageInfo(const std::string& test_name);
};
#endif // CHROME_TEST_PERF_BROWSER_PERF_TEST_H_
This diff is collapsed.
# Copyright 2013 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.
{
'targets': [
{
# GN version: //chrome/test/perf
'target_name': 'chrome_perf_test',
'type': 'static_library',
'sources': [
'perf_test.cc',
],
'dependencies': [
'../../../base/base.gyp:base',
'../../../testing/perf/perf_test.gyp:*',
],
},
],
}
// Copyright (c) 2012 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.
#ifndef CHROME_TEST_PERF_PERF_TEST_H_
#define CHROME_TEST_PERF_PERF_TEST_H_
#include <stdio.h>
#include <string>
#include "chrome/test/base/chrome_process_util.h"
namespace perf_test {
// Prints IO performance data for use by perf graphs.
void PrintIOPerfInfo(const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
void PrintIOPerfInfo(FILE* target,
const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
std::string IOPerfInfoToString(const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
// Prints memory usage data for use by perf graphs.
void PrintMemoryUsageInfo(const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
void PrintMemoryUsageInfo(FILE* target,
const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
std::string MemoryUsageInfoToString(const std::string& test_name,
const ChromeProcessList& chrome_processes,
base::ProcessId browser_pid);
} // namespace perf_test
#endif // CHROME_TEST_PERF_PERF_TEST_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment