Fix handling of aggregate times in TimerData::getResult

https://codereview.chromium.org/117393002/



git-svn-id: http://skia.googlecode.com/svn/trunk@12709 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-12-17 16:32:51 +00:00
parent 442fa37ffd
commit bbd893dcc3

View File

@ -73,11 +73,11 @@ SkString TimerData::getResult(const char* doubleFormat,
for (int i = 0; i < numTimings; ++i) {
if (kPerIter_Result == result) {
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[] = ", ";