OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TEST_PERF_PERF_TEST_H_ | 5 #ifndef CHROME_TEST_PERF_PERF_TEST_H_ |
6 #define CHROME_TEST_PERF_PERF_TEST_H_ | 6 #define CHROME_TEST_PERF_PERF_TEST_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/test/base/chrome_process_util.h" | 11 #include "chrome/test/base/chrome_process_util.h" |
12 | 12 |
13 namespace base { | |
14 class FilePath; | |
15 } | |
16 | |
13 namespace perf_test { | 17 namespace perf_test { |
14 | 18 |
15 // Prints numerical information to stdout in a controlled format, for | 19 // Prints numerical information to stdout in a controlled format, for |
16 // post-processing. |measurement| is a description of the quantity being | 20 // post-processing. |measurement| is a description of the quantity being |
17 // measured, e.g. "vm_peak"; |modifier| is provided as a convenience and | 21 // measured, e.g. "vm_peak"; |modifier| is provided as a convenience and |
18 // will be appended directly to the name of the |measurement|, e.g. | 22 // will be appended directly to the name of the |measurement|, e.g. |
19 // "_browser"; |trace| is a description of the particular data point, e.g. | 23 // "_browser"; |trace| is a description of the particular data point, e.g. |
20 // "reference"; |value| is the measured value; and |units| is a description | 24 // "reference"; |value| is the measured value; and |units| is a description |
21 // of the units of measure, e.g. "bytes". If |important| is true, the output | 25 // of the units of measure, e.g. "bytes". If |important| is true, the output |
22 // line will be specially marked, to notify the post-processor. The strings | 26 // line will be specially marked, to notify the post-processor. The strings |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 | 133 |
130 void PrintSystemCommitCharge(FILE* target, | 134 void PrintSystemCommitCharge(FILE* target, |
131 const std::string& test_name, | 135 const std::string& test_name, |
132 size_t charge, | 136 size_t charge, |
133 bool important); | 137 bool important); |
134 | 138 |
135 std::string SystemCommitChargeToString(const std::string& test_name, | 139 std::string SystemCommitChargeToString(const std::string& test_name, |
136 size_t charge, | 140 size_t charge, |
137 bool important); | 141 bool important); |
138 | 142 |
143 // Profile theme type choices. | |
144 enum ProfileType { | |
145 DEFAULT_THEME = 0, | |
146 COMPLEX_THEME = 1, | |
147 }; | |
148 | |
149 // Sets the directory name where we should look for "typical" user data during | |
150 // testing. | |
151 void SetPathForProfileType(ProfileType profile_type, base::FilePath path); | |
Paweł Hajdan Jr.
2013/04/26 23:19:32
nit: Why not const base::FilePath& path?
| |
152 | |
153 // Returns the directory name where the "typical" user data is that we use | |
154 // for testing. | |
155 base::FilePath GetPathForProfileType(ProfileType profile_type); | |
156 | |
139 } // namespace perf_test | 157 } // namespace perf_test |
140 | 158 |
141 #endif // CHROME_TEST_PERF_PERF_TEST_H_ | 159 #endif // CHROME_TEST_PERF_PERF_TEST_H_ |
OLD | NEW |