Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: bench/TimerData.h

Issue 303913002: In Android framework, make tools depend on jsoncpp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Do as Thoreau would do. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bench/ResultsWriter.cpp ('k') | bench/TimerData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef TimerData_DEFINED 9 #ifndef TimerData_DEFINED
10 #define TimerData_DEFINED 10 #define TimerData_DEFINED
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * @param the name of the config being timed (prepended to results string) 61 * @param the name of the config being timed (prepended to results string)
62 * @param timerFlags bitfield of TimerFlags values indicating which timers s hould be reported. 62 * @param timerFlags bitfield of TimerFlags values indicating which timers s hould be reported.
63 * @param itersPerTiming the number of test/bench iterations that correspond to each 63 * @param itersPerTiming the number of test/bench iterations that correspond to each
64 * appendTimes() call, 1 when appendTimes is called for each iteratio n. 64 * appendTimes() call, 1 when appendTimes is called for each iteratio n.
65 */ 65 */
66 SkString getResult(const char* doubleFormat, 66 SkString getResult(const char* doubleFormat,
67 Result result, 67 Result result,
68 const char* configName, 68 const char* configName,
69 uint32_t timerFlags, 69 uint32_t timerFlags,
70 int itersPerTiming = 1); 70 int itersPerTiming = 1);
71 #ifdef SK_BUILD_JSON_WRITER
72 Json::Value getJSON(uint32_t timerFlags, 71 Json::Value getJSON(uint32_t timerFlags,
73 Result result, 72 Result result,
74 int itersPerTiming = 1); 73 int itersPerTiming = 1);
75 #endif // SK_BUILD_JSON_WRITER
76 74
77 private: 75 private:
78 int fMaxNumTimings; 76 int fMaxNumTimings;
79 int fCurrTiming; 77 int fCurrTiming;
80 78
81 SkAutoTArray<double> fWallTimes; 79 SkAutoTArray<double> fWallTimes;
82 SkAutoTArray<double> fTruncatedWallTimes; 80 SkAutoTArray<double> fTruncatedWallTimes;
83 SkAutoTArray<double> fCpuTimes; 81 SkAutoTArray<double> fCpuTimes;
84 SkAutoTArray<double> fTruncatedCpuTimes; 82 SkAutoTArray<double> fTruncatedCpuTimes;
85 SkAutoTArray<double> fGpuTimes; 83 SkAutoTArray<double> fGpuTimes;
86 }; 84 };
87 85
88 #endif // TimerData_DEFINED 86 #endif // TimerData_DEFINED
OLDNEW
« no previous file with comments | « bench/ResultsWriter.cpp ('k') | bench/TimerData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698