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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 10914304: Add average commit time to perf tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix bug with texture_upload_benchmark.py Created 8 years, 3 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
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | tools/gpu/gpu_tools/texture_upload_benchmark.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index b7fd7c9e6ac9af37dfecc471eb88d2c6b944d532..495812531afe45ae585f25cf7b6d572833583cde 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -137,6 +137,7 @@ class GpuBenchmarkingWrapper : public v8::Extension {
}
static v8::Handle<v8::Value> GetRenderingStats(const v8::Arguments& args) {
+
WebFrame* web_frame = WebFrame::frameForEnteredContext();
if (!web_frame)
return v8::Undefined();
@@ -154,7 +155,6 @@ class GpuBenchmarkingWrapper : public v8::Extension {
content::GpuRenderingStats gpu_stats;
render_view_impl->GetGpuRenderingStats(&gpu_stats);
-
v8::Handle<v8::Object> stats_object = v8::Object::New();
stats_object->Set(v8::String::New("numAnimationFrames"),
v8::Integer::New(stats.numAnimationFrames));
@@ -166,6 +166,11 @@ class GpuBenchmarkingWrapper : public v8::Extension {
v8::Number::New(stats.totalPaintTimeInSeconds));
stats_object->Set(v8::String::New("totalRasterizeTimeInSeconds"),
v8::Number::New(stats.totalRasterizeTimeInSeconds));
+ stats_object->Set(v8::String::New("totalCommitTimeInSeconds"),
+ v8::Number::New(stats.totalCommitTimeInSeconds));
+ stats_object->Set(v8::String::New("totalCommitCount"),
+ v8::Integer::New(stats.totalCommitCount));
+
stats_object->Set(v8::String::New("globalTextureUploadCount"),
v8::Number::New(gpu_stats.global_texture_upload_count));
stats_object->Set(
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | tools/gpu/gpu_tools/texture_upload_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698