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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time.html
diff --git a/third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time.html b/third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time.html
new file mode 100644
index 0000000000000000000000000000000000000000..40089b3ea641ebda41fd96a0b589ae24c7469a00
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/harness/perftests/measure-frame-time.html
@@ -0,0 +1,22 @@
+<script src="../../../../PerformanceTests/resources/runner.js"></script>
+<script>
+// The initial value doesn't affect result.
+var virtualTime = 123456;
+PerfTestRunner.now = function () { return virtualTime; }
+
+var originalRequestAnimationFrame = window.requestAnimationFrame;
+window.requestAnimationFrame = function(f) {
+ // This time is part of the result.
+ virtualTime += 10;
+ originalRequestAnimationFrame(f);
+};
+
+PerfTestRunner.measureFrameTime({
+ run: function () {
+ // This time is part of the result.
+ virtualTime += 20;
+ },
+ warmUpCount: 3,
+ doNotMeasureMemoryUsage: true,
+});
+</script>
« 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