From e45c81c8f3bb62e45f2ff3b8772b4b23f1ddc6ca Mon Sep 17 00:00:00 2001 From: joshualitt Date: Wed, 2 Dec 2015 09:05:37 -0800 Subject: Began logging more gpu stats from nanobench BUG=skia: Review URL: https://codereview.chromium.org/1489033004 --- bench/ResultsWriter.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bench/ResultsWriter.h') diff --git a/bench/ResultsWriter.h b/bench/ResultsWriter.h index 2906429bf0..bf74d47826 100644 --- a/bench/ResultsWriter.h +++ b/bench/ResultsWriter.h @@ -87,26 +87,26 @@ public: } // Added under "key". - virtual void key(const char name[], const char value[]) { + void key(const char name[], const char value[]) override { fRoot["key"][name] = value; } // Inserted directly into the root. - virtual void property(const char name[], const char value[]) { + void property(const char name[], const char value[]) override { fRoot[name] = value; } - virtual void bench(const char name[], int32_t x, int32_t y) { + void bench(const char name[], int32_t x, int32_t y) override { SkString id = SkStringPrintf( "%s_%d_%d", name, x, y); fResults[id.c_str()] = Json::Value(Json::objectValue); fBench = &fResults[id.c_str()]; } - virtual void config(const char name[]) { + void config(const char name[]) override { SkASSERT(fBench); fConfig = &(*fBench)[name]; } - virtual void configOption(const char name[], const char* value) { + void configOption(const char name[], const char* value) override { (*fConfig)["options"][name] = value; } - virtual void metric(const char name[], double ms) { + void metric(const char name[], double ms) override { // Don't record if nan, or -nan. if (sk_double_isnan(ms)) { return; @@ -116,7 +116,7 @@ public: } // Flush to storage now please. - virtual void flush() { + void flush() override { SkString dirname = SkOSPath::Dirname(fFilename.c_str()); if (!sk_exists(dirname.c_str(), kWrite_SkFILE_Flag)) { if (!sk_mkdir(dirname.c_str())) { -- cgit v1.2.3