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

Unified Diff: content/public/renderer/rendering_benchmark.cc

Issue 10537036: Added rendering benchmark javascript hook (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: renaming Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/rendering_benchmark.cc
diff --git a/content/public/renderer/rendering_benchmark.cc b/content/public/renderer/rendering_benchmark.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b6091180c502268c2f198fc40243894dceeddc00
--- /dev/null
+++ b/content/public/renderer/rendering_benchmark.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/renderer/rendering_benchmark.h"
+
+namespace content {
+
+RenderingBenchmark::RenderingBenchmark(const std::string& name,
+ RenderingBenchmarkResults* results)
+ : name_(name),
+ results_(results) {}
+
+RenderingBenchmark::~RenderingBenchmark() {}
+
+void RenderingBenchmark::RecordResult(const std::string& result_name,
+ const std::string& time_unit,
+ double time) {
+ results_->addResult(name_, result_name, time_unit, time);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698