Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6861)

Issue 228320043: Fix input latency side panel issue

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by miletus
Modified:
8 years, 11 months ago
Reviewers:
nduca, Sami Kyöstilä
CC:
trace-viewer-review_googlegroups.com
Base URL:
https://github.com/google/trace-viewer.git@master
Visibility:
Public.

Description

Fix input latency side panel issue Input latency side panel and RAIL analysis code should only work on input latency trace event, not non-input latency trace event. The filtering logic is that, in the future only input latency trace event's name has prefix "InputLatency". Currently, some non-input related latency trace event also have name "InputLatencyXXX". To filter these trace events out, we check if the LatencyInfo has BEGIN_RWH component (only input latency has this component). BUG=#828

Patch Set 1 #

Patch Set 2 : filter out InputLatency that does not have BEGIN_RWH component #

Total comments: 3

Patch Set 3 : rework based on recently refactor of nput_latency_async_slice.html #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : address comments #

Total comments: 1

Patch Set 6 : rework the test #

Patch Set 7 : fixed typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -3 lines) Patch
M trace_viewer/extras/cc/input_latency_async_slice.html View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M trace_viewer/extras/cc/input_latency_async_slice_test.html View 1 2 3 4 5 6 3 chunks +23 lines, -0 lines 0 comments Download
M trace_viewer/extras/side_panel/input_latency_test.html View 1 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23
miletus
9 years ago (2015-04-17 15:45:11 UTC) #1
nduca
that is very confusing, why is it a latency info event in the first place?
9 years ago (2015-04-17 15:56:39 UTC) #2
miletus
On 2015/04/17 15:56:39, nduca wrote: > that is very confusing, why is it a latency ...
9 years ago (2015-04-17 16:05:15 UTC) #3
nduca
then why is it called a latency event?
9 years ago (2015-04-17 16:08:32 UTC) #4
miletus
On 2015/04/17 16:08:32, nduca wrote: > then why is it called a latency event? well ...
9 years ago (2015-04-17 16:15:39 UTC) #5
nduca
how do we make this more understandable to users? we say to users that latency ...
9 years ago (2015-04-17 16:28:57 UTC) #6
miletus
On 2015/04/17 16:28:57, nduca wrote: > how do we make this more understandable to users? ...
9 years ago (2015-04-17 18:02:21 UTC) #7
Sami Kyöstilä
Having a "hierarchy" of latencies sounds like a good way to think about this. We ...
9 years ago (2015-04-17 18:09:37 UTC) #8
nduca
This sounds promising. To be clear, you're saying changing the name of the async event ...
9 years ago (2015-04-17 18:25:53 UTC) #9
nduca
in the meantime, please update these methods to be backcompat: there is code here asking ...
9 years ago (2015-04-17 18:27:24 UTC) #10
miletus
On 2015/04/17 18:25:53, nduca wrote: > This sounds promising. To be clear, you're saying changing ...
9 years ago (2015-04-17 18:28:50 UTC) #11
nduca
can't these just be differently named events? ScrollUpdateLatency? InputLatency? Also, why are we doing single ...
9 years ago (2015-04-17 18:39:34 UTC) #12
miletus
On 2015/04/17 18:39:34, nduca wrote: > can't these just be differently named events? ScrollUpdateLatency? InputLatency? ...
9 years ago (2015-04-17 19:56:39 UTC) #13
miletus
On 2015/04/17 18:39:34, nduca wrote: > can't these just be differently named events? ScrollUpdateLatency? InputLatency? ...
9 years ago (2015-04-17 19:56:40 UTC) #14
Sami Kyöstilä
lgtm.
9 years ago (2015-04-20 13:30:35 UTC) #15
nduca
not ready to land yet, sorry. please focus more on making this code easy to ...
9 years ago (2015-04-20 14:38:50 UTC) #16
nduca
to the tests, i'd like there to be a variety of tests that show the ...
9 years ago (2015-04-20 14:51:07 UTC) #17
miletus
Sorry for letting it sitting for too long. Nat, I have rebased the change based ...
8 years, 11 months ago (2015-05-13 19:55:49 UTC) #18
nduca
https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html File trace_viewer/extras/audits/chrome_auditor_test.html (right): https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html#newcode33 trace_viewer/extras/audits/chrome_auditor_test.html:33: why no tests here? https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/side_panel/input_latency.html File trace_viewer/extras/side_panel/input_latency.html (right): https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/side_panel/input_latency.html#newcode243 ...
8 years, 11 months ago (2015-05-15 17:57:35 UTC) #19
miletus
https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html File trace_viewer/extras/audits/chrome_auditor_test.html (right): https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html#newcode33 trace_viewer/extras/audits/chrome_auditor_test.html:33: On 2015/05/15 17:57:34, nduca wrote: > why no tests ...
8 years, 11 months ago (2015-05-19 20:16:03 UTC) #20
miletus
On 2015/05/19 20:16:03, miletus wrote: > https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html > File trace_viewer/extras/audits/chrome_auditor_test.html (right): > > https://codereview.appspot.com/228320043/diff/60001/trace_viewer/extras/audits/chrome_auditor_test.html#newcode33 > ...
8 years, 11 months ago (2015-05-25 17:08:17 UTC) #21
nduca
https://codereview.appspot.com/228320043/diff/80001/trace_viewer/extras/cc/input_latency_async_slice_test.html File trace_viewer/extras/cc/input_latency_async_slice_test.html (right): https://codereview.appspot.com/228320043/diff/80001/trace_viewer/extras/cc/input_latency_async_slice_test.html#newcode41 trace_viewer/extras/cc/input_latency_async_slice_test.html:41: var sInner = newAsyncSliceEx({ tests that are monolithic --- ...
8 years, 11 months ago (2015-05-27 04:48:25 UTC) #22
miletus
8 years, 11 months ago (2015-05-27 22:00:35 UTC) #23
On 2015/05/27 04:48:25, nduca wrote:
>
https://codereview.appspot.com/228320043/diff/80001/trace_viewer/extras/cc/in...
> File trace_viewer/extras/cc/input_latency_async_slice_test.html (right):
> 
>
https://codereview.appspot.com/228320043/diff/80001/trace_viewer/extras/cc/in...
> trace_viewer/extras/cc/input_latency_async_slice_test.html:41: var sInner =
> newAsyncSliceEx({
> tests that are monolithic --- one giant scenario followed by a pile of
> assertions --- are incredibly hard to maintain over time. please avoid this.
> 
> in this case, you are augmenting a test that is about matchingByType.
> 
> whereas, you've really got two tests:
> first test , makes an input latency async slice with valid data and checks the
> computed latency
> second test, 
> 
> you're also testing the legacy format. why?
> 
> your test data should be inline, not as a constant at the top.

I made the existing matchingXXX tests to have valid data, so their focus is
still
on the matching. I added another test with invalid data, so it is specifically
testing the data format.

PTAL, thanks.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b