forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate latency metric timestamps on windows based on GetTickCount
On Windows, EventTimeFromNative just returns the current time as the event timestamp, to smooth over the difference between touch events (timestamps based on the high-resolution timer) and other events (timestamps based on the low-resolution GetTickCount). This makes it impossible to measure the time between the event being generated by the OS and handled by Chrome for latency measurements. This patch continues to set timestamps in event objects from the current time, but calculates new Latency.OS_WIN.* metrics for certain events using the OS event timestamp. BUG=1189656 R=gab Change-Id: Ic152833c7e544499b785be4d3a758de1911c4cbc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2769418 Reviewed-by: Jesse Doherty <jwd@chromium.org> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Commit-Queue: Joe Mason <joenotcharles@chromium.org> Cr-Commit-Position: refs/heads/master@{#866633}
- Loading branch information
1 parent
016588d
commit 0c64eba
Showing
7 changed files
with
350 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.