aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index a50138a624..8cd8e8171f 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -738,7 +738,6 @@ public:
SkString name = SkOSPath::Basename(path.c_str());
fSourceType = "skp";
fBenchType = "recording";
- fSKPBytes = static_cast<double>(pic->approximateBytesUsed());
fSKPOps = pic->approximateOpCount();
return new RecordingBench(name.c_str(), pic.get(), FLAGS_bbh, FLAGS_lite);
}
@@ -753,7 +752,6 @@ public:
SkString name = SkOSPath::Basename(path.c_str());
fSourceType = "skp";
fBenchType = "piping";
- fSKPBytes = static_cast<double>(pic->approximateBytesUsed());
fSKPOps = pic->approximateOpCount();
return new PipingBench(name.c_str(), pic.get());
}
@@ -768,7 +766,6 @@ public:
SkString name = SkOSPath::Basename(path.c_str());
fSourceType = "skp";
fBenchType = "deserial";
- fSKPBytes = static_cast<double>(data->size());
fSKPOps = 0;
return new DeserializePictureBench(name.c_str(), std::move(data));
}
@@ -1062,7 +1059,6 @@ public:
}
}
if (0 == strcmp(fBenchType, "recording")) {
- log->metric("bytes", fSKPBytes);
log->metric("ops", fSKPOps);
}
}
@@ -1093,7 +1089,7 @@ private:
SkScalar fZoomMax;
double fZoomPeriodMs;
- double fSKPBytes, fSKPOps;
+ double fSKPOps;
const char* fSourceType; // What we're benching: bench, GM, SKP, ...
const char* fBenchType; // How we bench it: micro, recording, playback, ...