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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time.html

Issue 2429623004: Add performance tests for full frame cycle (Closed)
Patch Set: No random Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../../../../PerformanceTests/resources/runner.js"></script>
2 <script>
3 // The initial value doesn't affect result.
4 var virtualTime = 123456;
5 PerfTestRunner.now = function () { return virtualTime; }
6
7 var originalRequestAnimationFrame = window.requestAnimationFrame;
8 window.requestAnimationFrame = function(f) {
9 // This time is part of the result.
10 virtualTime += 10;
11 originalRequestAnimationFrame(f);
12 };
13
14 PerfTestRunner.measureFrameTime({
15 run: function () {
16 // This time is part of the result.
17 virtualTime += 20;
18 },
19 warmUpCount: 3,
20 doNotMeasureMemoryUsage: true,
21 });
22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698