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

Unified Diff: tools/telemetry/telemetry/core/tab.py

Issue 308513003: Add start video marker into the trace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding unit test 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
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/tab_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/tab.py
diff --git a/tools/telemetry/telemetry/core/tab.py b/tools/telemetry/telemetry/core/tab.py
index 5e6138dedfa2d976c017ed77d1bd18fca4f79bde..ace4cfe98e8986653374c7c5cc7427fe0766103e 100644
--- a/tools/telemetry/telemetry/core/tab.py
+++ b/tools/telemetry/telemetry/core/tab.py
@@ -109,7 +109,9 @@ class Tab(web_contents.WebContents):
screen.style.zIndex = '2147483638';
document.body.appendChild(screen);
requestAnimationFrame(function() {
- window.__telemetry_screen_%d = screen;
+ requestAnimationFrame(function() {
+ window.__telemetry_screen_%d = screen;
+ });
});
})();
""" % (color.r, color.g, color.b, color.a, int(color)))
@@ -122,7 +124,11 @@ class Tab(web_contents.WebContents):
(function() {
document.body.removeChild(window.__telemetry_screen_%d);
requestAnimationFrame(function() {
- window.__telemetry_screen_%d = null;
+ requestAnimationFrame(function() {
+ window.__telemetry_screen_%d = null;
+ console.time('__ClearHighlight.video_capture_start');
+ console.timeEnd('__ClearHighlight.video_capture_start');
+ });
});
})();
""" % (int(color), int(color)))
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/tab_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698