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

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: Disable timeline_based_measurement smoke test for responsive on windows platform Created 6 years, 6 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 | « tools/telemetry/telemetry/web_perf/timeline_based_measurement_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d7c7cfa01319b3e9a4c3afdc5c13a727b8f17e32 100644
--- a/tools/telemetry/unittest_data/interaction_enabled_page.html
+++ b/tools/telemetry/unittest_data/interaction_enabled_page.html
@@ -53,5 +53,20 @@
<div id="drawer">
This is a drawer.
</div>
+ <script>
+ 'use strict';
+ var jankMs = 100;
+ 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>
</body>
</html>
« no previous file with comments | « tools/telemetry/telemetry/web_perf/timeline_based_measurement_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698