| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 * | 6 * |
| 7 * Classes for writing out bench results in various formats. | 7 * Classes for writing out bench results in various formats. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef SkPictureResultsWriter_DEFINED | 10 #ifndef SkPictureResultsWriter_DEFINED |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 TimerData* data, | 131 TimerData* data, |
| 132 const char format[], | 132 const char format[], |
| 133 const TimerData::Result result, | 133 const TimerData::Result result, |
| 134 uint32_t timerTypes, | 134 uint32_t timerTypes, |
| 135 int numInnerLoops = 1) SK_OVERRIDE { | 135 int numInnerLoops = 1) SK_OVERRIDE { |
| 136 SkString results = data->getResult(format, result, | 136 SkString results = data->getResult(format, result, |
| 137 fCurrentLine.c_str(), timerTypes, numInnerLoops); | 137 fCurrentLine.c_str(), timerTypes, numInnerLoops); |
| 138 results.append("\n"); | 138 results.append("\n"); |
| 139 this->logProgress(results.c_str()); | 139 this->logProgress(results.c_str()); |
| 140 } | 140 } |
| 141 virtual void end() {} | 141 virtual void end() SK_OVERRIDE {} |
| 142 private: | 142 private: |
| 143 BenchLogger* fLogger; | 143 BenchLogger* fLogger; |
| 144 SkString fCurrentLine; | 144 SkString fCurrentLine; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 /** | 147 /** |
| 148 * This PictureResultsWriter collects data in a JSON node | 148 * This PictureResultsWriter collects data in a JSON node |
| 149 * | 149 * |
| 150 * The format is something like | 150 * The format is something like |
| 151 * { | 151 * { |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 SkString fConfigString; | 302 SkString fConfigString; |
| 303 SkString fBuilderName; | 303 SkString fBuilderName; |
| 304 int fBuildNumber; | 304 int fBuildNumber; |
| 305 int fTimestamp; | 305 int fTimestamp; |
| 306 SkString fGitHash; | 306 SkString fGitHash; |
| 307 int fGitNumber; | 307 int fGitNumber; |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 #endif | 310 #endif |
| OLD | NEW |