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

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: - 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
OLDNEW
(Empty)
1 <script src="../../../../PerformanceTests/resources/runner.js"></script>
2 <script>
3 // The initial value doesn't affect result.
4 var virtualTime = Math.floor(Math.random() * 100000);
5 PerfTestRunner.now = function () { return virtualTime; }
6
7 var originalRequestAnimationFrame = window.requestAnimationFrame;
8 window.requestAnimationFrame = function(f) {
9 virtualTime += 10;
10 originalRequestAnimationFrame(f);
11 };
12
13 PerfTestRunner.measureFrameTime({
14 run: function () {
15 virtualTime += 20;
16 },
17 warmUpCount: 3,
18 doNotMeasureMemoryUsage: true,
19 });
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698