summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf/browser_perf_test.h
blob: 33103451a132015334e176340ddbbea10f452d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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_
#pragma once

#include "chrome/test/base/in_process_browser_test.h"

class CommandLine;

class BrowserPerfTest : public InProcessBrowserTest {
 public:
  BrowserPerfTest();
  virtual ~BrowserPerfTest();

  // Set up common browser perf test flags. Typically call down to this if
  // overridden.
  virtual void SetUpCommandLine(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_