| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 TESTING_PERF_PERF_TEST_H_ | 5 #ifndef TESTING_PERF_PERF_TEST_H_ |
| 6 #define TESTING_PERF_PERF_TEST_H_ | 6 #define TESTING_PERF_PERF_TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace perf_test { | 10 namespace perf_test { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // A typical post-processing step would be to produce graphs of the data | 21 // A typical post-processing step would be to produce graphs of the data |
| 22 // produced for various builds, using the combined |measurement| + |modifier| | 22 // produced for various builds, using the combined |measurement| + |modifier| |
| 23 // string to specify a particular graph and the |trace| to identify a trace | 23 // string to specify a particular graph and the |trace| to identify a trace |
| 24 // (i.e., data series) on that graph. | 24 // (i.e., data series) on that graph. |
| 25 void PrintResult(const std::string& measurement, | 25 void PrintResult(const std::string& measurement, |
| 26 const std::string& modifier, | 26 const std::string& modifier, |
| 27 const std::string& trace, | 27 const std::string& trace, |
| 28 size_t value, | 28 size_t value, |
| 29 const std::string& units, | 29 const std::string& units, |
| 30 bool important); | 30 bool important); |
| 31 void PrintResult(const std::string& measurement, |
| 32 const std::string& modifier, |
| 33 const std::string& trace, |
| 34 double value, |
| 35 const std::string& units, |
| 36 bool important); |
| 31 | 37 |
| 32 void AppendResult(std::string& output, | 38 void AppendResult(std::string& output, |
| 33 const std::string& measurement, | 39 const std::string& measurement, |
| 34 const std::string& modifier, | 40 const std::string& modifier, |
| 35 const std::string& trace, | 41 const std::string& trace, |
| 36 size_t value, | 42 size_t value, |
| 37 const std::string& units, | 43 const std::string& units, |
| 38 bool important); | 44 bool important); |
| 39 | 45 |
| 40 // Like the above version of PrintResult(), but takes a std::string value | 46 // Like the above version of PrintResult(), but takes a std::string value |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 size_t charge, | 107 size_t charge, |
| 102 bool important); | 108 bool important); |
| 103 | 109 |
| 104 std::string SystemCommitChargeToString(const std::string& test_name, | 110 std::string SystemCommitChargeToString(const std::string& test_name, |
| 105 size_t charge, | 111 size_t charge, |
| 106 bool important); | 112 bool important); |
| 107 | 113 |
| 108 } // namespace perf_test | 114 } // namespace perf_test |
| 109 | 115 |
| 110 #endif // TESTING_PERF_PERF_TEST_H_ | 116 #endif // TESTING_PERF_PERF_TEST_H_ |
| OLD | NEW |