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

Unified Diff: bench/TimerData.cpp

Issue 117393002: Fix handling of aggregate times in TimerData::getResult (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TimerData.cpp
===================================================================
--- bench/TimerData.cpp (revision 12705)
+++ bench/TimerData.cpp (working copy)
@@ -73,11 +73,11 @@
for (int i = 0; i < numTimings; ++i) {
if (kPerIter_Result == result) {
robertphillips 2013/12/17 16:20:54 This is modeled on what is done for kMin_Result be
- wallStr.appendf(doubleFormat, fWallTimes[i]);
- truncWallStr.appendf(doubleFormat, fTruncatedWallTimes[i]);
- cpuStr.appendf(doubleFormat, fCpuTimes[i]);
- truncCpuStr.appendf(doubleFormat, fTruncatedCpuTimes[i]);
- gpuStr.appendf(doubleFormat, fGpuTimes[i]);
+ wallStr.appendf(doubleFormat, fWallTimes[i] / itersPerTiming);
+ truncWallStr.appendf(doubleFormat, fTruncatedWallTimes[i] / itersPerTiming);
+ cpuStr.appendf(doubleFormat, fCpuTimes[i] / itersPerTiming);
+ truncCpuStr.appendf(doubleFormat, fTruncatedCpuTimes[i] / itersPerTiming);
+ gpuStr.appendf(doubleFormat, fGpuTimes[i] / itersPerTiming);
if (i != numTimings - 1) {
static const char kSep[] = ", ";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698