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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/harness/perftests/measure-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
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 originalSetTimeout = window.setTimeout;
8 window.setTimeout = function(f, t) {
9 // This doesn't affect result.
10 virtualTime += 654321;
11 originalSetTimeout(f, t);
12 };
13
14 PerfTestRunner.measureTime({
15 run: function () {
16 virtualTime += 20;
17 },
18 warmUpCount: 3,
19 doNotMeasureMemoryUsage: true,
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698