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

Unified Diff: tools/telemetry/unittest_data/interaction_enabled_page.html

Issue 273103003: Add responsiveness_metric for timeline_based_measurement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Chris' comments Created 6 years, 7 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
Index: tools/telemetry/unittest_data/interaction_enabled_page.html
diff --git a/tools/telemetry/unittest_data/interaction_enabled_page.html b/tools/telemetry/unittest_data/interaction_enabled_page.html
index cadb1fa515537436574c5899e6aa7421cff66a36..c22dd9b8023c2b522390af47ba4497b8ec97fa0f 100644
--- a/tools/telemetry/unittest_data/interaction_enabled_page.html
+++ b/tools/telemetry/unittest_data/interaction_enabled_page.html
@@ -54,4 +54,19 @@
This is a drawer.
</div>
</body>
+ <script>
chrishenry 2014/05/19 23:16:50 Should this be in <body>?
+ 'use strict';
+ var jankMs = 50;
+ function jankThread() {
+ console.time('Interaction.JankThreadJSRun/is_responsive');
+ var startTime = window.performance.now();
+ var currTime = startTime;
+ while (currTime - startTime < jankMs) {
+ var currTime = window.performance.now();
+ }
+ console.timeEnd('Interaction.JankThreadJSRun/is_responsive');
+ }
+ var drawer = document.getElementById('drawer');
+ drawer.addEventListener('click', jankThread);
+ </script>
</html>

Powered by Google App Engine
This is Rietveld 408576698