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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 10985082: GPU benchmarks should track the frequency of impl-thread vs. main-thread scrolls (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 5 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 stats_object->Set(v8::String::New("droppedFrameCount"), 163 stats_object->Set(v8::String::New("droppedFrameCount"),
164 v8::Integer::New(stats.droppedFrameCount)); 164 v8::Integer::New(stats.droppedFrameCount));
165 stats_object->Set(v8::String::New("totalPaintTimeInSeconds"), 165 stats_object->Set(v8::String::New("totalPaintTimeInSeconds"),
166 v8::Number::New(stats.totalPaintTimeInSeconds)); 166 v8::Number::New(stats.totalPaintTimeInSeconds));
167 stats_object->Set(v8::String::New("totalRasterizeTimeInSeconds"), 167 stats_object->Set(v8::String::New("totalRasterizeTimeInSeconds"),
168 v8::Number::New(stats.totalRasterizeTimeInSeconds)); 168 v8::Number::New(stats.totalRasterizeTimeInSeconds));
169 stats_object->Set(v8::String::New("totalCommitTimeInSeconds"), 169 stats_object->Set(v8::String::New("totalCommitTimeInSeconds"),
170 v8::Number::New(stats.totalCommitTimeInSeconds)); 170 v8::Number::New(stats.totalCommitTimeInSeconds));
171 stats_object->Set(v8::String::New("totalCommitCount"), 171 stats_object->Set(v8::String::New("totalCommitCount"),
172 v8::Integer::New(stats.totalCommitCount)); 172 v8::Integer::New(stats.totalCommitCount));
173 stats_object->Set(v8::String::New("didImplThreadScroll"),
174 v8::Boolean::New(stats.didImplThreadScroll));
173 175
174 stats_object->Set(v8::String::New("globalTextureUploadCount"), 176 stats_object->Set(v8::String::New("globalTextureUploadCount"),
175 v8::Number::New(gpu_stats.global_texture_upload_count)); 177 v8::Number::New(gpu_stats.global_texture_upload_count));
176 stats_object->Set( 178 stats_object->Set(
177 v8::String::New("globalTotalTextureUploadTimeInSeconds"), 179 v8::String::New("globalTotalTextureUploadTimeInSeconds"),
178 v8::Number::New( 180 v8::Number::New(
179 gpu_stats.global_total_texture_upload_time.InSecondsF())); 181 gpu_stats.global_total_texture_upload_time.InSecondsF()));
180 stats_object->Set(v8::String::New("textureUploadCount"), 182 stats_object->Set(v8::String::New("textureUploadCount"),
181 v8::Number::New(gpu_stats.texture_upload_count)); 183 v8::Number::New(gpu_stats.texture_upload_count));
182 stats_object->Set( 184 stats_object->Set(
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 342
341 return results; 343 return results;
342 } 344 }
343 }; 345 };
344 346
345 v8::Extension* GpuBenchmarkingExtension::Get() { 347 v8::Extension* GpuBenchmarkingExtension::Get() {
346 return new GpuBenchmarkingWrapper(); 348 return new GpuBenchmarkingWrapper();
347 } 349 }
348 350
349 } // namespace content 351 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698