Confirmed users
975
edits
(→Example: Add first code point) |
|||
| Line 77: | Line 77: | ||
=== Example: time to display the home screen === | === Example: time to display the home screen === | ||
For step 1) in the outline, we want to measure the time it takes to fully display the home screen. We always need to be very specific: we'll want the duration from hitting the home button on an open tab until the homescreen is visually complete. | For step 1) in the outline, we want to measure the time it takes to fully display the home screen. We always need to be very specific: we'll want '''the duration from hitting the home button on an open tab until the homescreen is visually complete.''' | ||
For step 2.1), we'll '''first add code to capture the timestamp when the home button is pressed.''' To get the duration closest to what the user experiences, we need to record the time when the touch event is initially received: <code>HomeActivity.dispatchTouchEvent</code>. | For step 2.1), we'll '''first add code to capture the timestamp when the home button is pressed.''' To get the duration closest to what the user experiences, we need to record the time when the touch event is initially received: <code>HomeActivity.dispatchTouchEvent</code>. | ||