[RPP] Create LCP phases overlay [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Adriana Ixba (Gerrit)

unread,
Jun 25, 2024, 7:12:05 PM (4 days ago) Jun 25
to Paul Irish, Alina Varkki, devtools-rev...@chromium.org
Attention needed from Alina Varkki and Paul Irish

Adriana Ixba voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alina Varkki
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Id8fd0d31a943495f63b8555bba90ecac340a03f4
Gerrit-Change-Number: 5628319
Gerrit-PatchSet: 9
Gerrit-Owner: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Alina Varkki <alina...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-Attention: Alina Varkki <alina...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Tue, 25 Jun 2024 23:12:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Adriana Ixba (Gerrit)

unread,
Jun 25, 2024, 8:37:51 PM (4 days ago) Jun 25
to Nancy Li, Devtools-frontend LUCI CQ, Paul Irish, Alina Varkki, devtools-rev...@chromium.org
Attention needed from Alina Varkki and Paul Irish

Adriana Ixba voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alina Varkki
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Id8fd0d31a943495f63b8555bba90ecac340a03f4
Gerrit-Change-Number: 5628319
Gerrit-PatchSet: 10
Gerrit-Owner: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Alina Varkki <alina...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-CC: Nancy Li <nan...@chromium.org>
Gerrit-Attention: Alina Varkki <alina...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Wed, 26 Jun 2024 00:37:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Alina Varkki (Gerrit)

unread,
Jun 26, 2024, 9:41:40 AM (4 days ago) Jun 26
to Adriana Ixba, Nancy Li, Devtools-frontend LUCI CQ, Paul Irish, devtools-rev...@chromium.org
Attention needed from Adriana Ixba and Paul Irish

Alina Varkki added 8 comments

File front_end/panels/timeline/Overlays.ts
Line 20, Patchset 11 (Latest):const TIMESPAN_BREAKDOWN_OVERLAY_STAGGER_PX = 5;
Alina Varkki . unresolved

We could move this to `TimespanBreakdownOverlay` as a static variable and import it here to try keep the object rendering logic there

Line 388, Patchset 11 (Latest): const leftEdgePixel = this.#xPixelForMicroSeconds('main', overlay.sections[0].bounds.min);
Alina Varkki . unresolved

Let's check if `overlay.sections[0]` exists

File front_end/panels/timeline/TimelineFlameChartView.ts
Line 216, Patchset 11 (Latest): sidebarInsightEnabled(): void {
Alina Varkki . unresolved

nit: `toggleSidebarInsights`

Line 226, Patchset 11 (Latest): this.#timespanBreakdownOverlay = null;
Alina Varkki . unresolved

I think we can remove this line to not recalculate `this.#timespanBreakdownOverlay` since it won't ever change. We can just add the same object to overlays again when the insights are turned on if we calculated it before.

Line 451, Patchset 11 (Latest): {bounds: renderDelay, label: 'Element render delay'},
Alina Varkki . unresolved

We probably need to add those labels to `const UIStrings = {}`

File front_end/panels/timeline/components/Sidebar.ts
Line 36, Patchset 11 (Latest):export class SidebarInsightEnabled extends Event {
Alina Varkki . unresolved

Maybe let's rename it to `ToggleSidebarInsights` since it's turning them on/off?

Line 300, Patchset 11 (Latest): <div class="insights" @click=${this.#toggleLCPPhaseClick}>${this.#renderLCPPhases()}</div>
Alina Varkki . unresolved

Is that the final solution to make it show up? This component doesn't look very clickable when you look at it 😅

Line 305, Patchset 11 (Latest): <div class="insights">${this.#renderLCPPhases()}</div>
Alina Varkki . unresolved

We can add `@click=${this.#toggleLCPPhaseClick}` here too

Open in Gerrit

Related details

Attention is currently required from:
  • Adriana Ixba
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Id8fd0d31a943495f63b8555bba90ecac340a03f4
Gerrit-Change-Number: 5628319
Gerrit-PatchSet: 11
Gerrit-Owner: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Alina Varkki <alina...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-CC: Nancy Li <nan...@chromium.org>
Gerrit-Attention: Adriana Ixba <ai...@google.com>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Wed, 26 Jun 2024 13:41:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Adriana Ixba (Gerrit)

unread,
Jun 26, 2024, 6:18:04 PM (3 days ago) Jun 26
to Nancy Li, Devtools-frontend LUCI CQ, Paul Irish, Alina Varkki, devtools-rev...@chromium.org
Attention needed from Alina Varkki and Paul Irish

Adriana Ixba voted and added 8 comments

Votes added by Adriana Ixba

Commit-Queue+1

8 comments

File front_end/panels/timeline/Overlays.ts
Line 20, Patchset 11:const TIMESPAN_BREAKDOWN_OVERLAY_STAGGER_PX = 5;
Alina Varkki . resolved

We could move this to `TimespanBreakdownOverlay` as a static variable and import it here to try keep the object rendering logic there

Adriana Ixba

Done

Line 388, Patchset 11: const leftEdgePixel = this.#xPixelForMicroSeconds('main', overlay.sections[0].bounds.min);
Alina Varkki . resolved

Let's check if `overlay.sections[0]` exists

Adriana Ixba

Done

File front_end/panels/timeline/TimelineFlameChartView.ts
Line 216, Patchset 11: sidebarInsightEnabled(): void {
Alina Varkki . resolved

nit: `toggleSidebarInsights`

Adriana Ixba

Done

Line 226, Patchset 11: this.#timespanBreakdownOverlay = null;
Alina Varkki . resolved

I think we can remove this line to not recalculate `this.#timespanBreakdownOverlay` since it won't ever change. We can just add the same object to overlays again when the insights are turned on if we calculated it before.

Adriana Ixba

Done

Line 451, Patchset 11: {bounds: renderDelay, label: 'Element render delay'},
Alina Varkki . resolved

We probably need to add those labels to `const UIStrings = {}`

Adriana Ixba

Done

File front_end/panels/timeline/components/Sidebar.ts
Line 36, Patchset 11:export class SidebarInsightEnabled extends Event {
Alina Varkki . resolved

Maybe let's rename it to `ToggleSidebarInsights` since it's turning them on/off?

Adriana Ixba

Done

Line 300, Patchset 11: <div class="insights" @click=${this.#toggleLCPPhaseClick}>${this.#renderLCPPhases()}</div>
Alina Varkki . unresolved

Is that the final solution to make it show up? This component doesn't look very clickable when you look at it 😅

Adriana Ixba

Ah yeah! The sidebar insights that are not clicked look different than those that are (they are unexpanded and gray). That bit is not on this CL but will be added in a follow up!

Line 305, Patchset 11: <div class="insights">${this.#renderLCPPhases()}</div>
Alina Varkki . resolved

We can add `@click=${this.#toggleLCPPhaseClick}` here too

Adriana Ixba

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alina Varkki
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Id8fd0d31a943495f63b8555bba90ecac340a03f4
Gerrit-Change-Number: 5628319
Gerrit-PatchSet: 13
Gerrit-Owner: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Alina Varkki <alina...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-CC: Nancy Li <nan...@chromium.org>
Gerrit-Attention: Alina Varkki <alina...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Wed, 26 Jun 2024 22:18:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Alina Varkki <alina...@chromium.org>
unsatisfied_requirement
open
diffy

Adriana Ixba (Gerrit)

unread,
Jun 27, 2024, 4:39:22 PM (3 days ago) Jun 27
to Nancy Li, Devtools-frontend LUCI CQ, Paul Irish, Alina Varkki, devtools-rev...@chromium.org
Attention needed from Alina Varkki and Paul Irish

Adriana Ixba voted and added 1 comment

Votes added by Adriana Ixba

Commit-Queue+1

1 comment

File front_end/panels/timeline/components/Sidebar.ts
Line 300, Patchset 11: <div class="insights" @click=${this.#toggleLCPPhaseClick}>${this.#renderLCPPhases()}</div>
Alina Varkki . resolved

Is that the final solution to make it show up? This component doesn't look very clickable when you look at it 😅

Adriana Ixba

Ah yeah! The sidebar insights that are not clicked look different than those that are (they are unexpanded and gray). That bit is not on this CL but will be added in a follow up!

Open in Gerrit

Related details

Attention is currently required from:
  • Alina Varkki
  • Paul Irish
Submit Requirements:
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Id8fd0d31a943495f63b8555bba90ecac340a03f4
Gerrit-Change-Number: 5628319
Gerrit-PatchSet: 15
Gerrit-Owner: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Adriana Ixba <ai...@google.com>
Gerrit-Reviewer: Alina Varkki <alina...@chromium.org>
Gerrit-Reviewer: Paul Irish <paul...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-CC: Nancy Li <nan...@chromium.org>
Gerrit-Attention: Alina Varkki <alina...@chromium.org>
Gerrit-Attention: Paul Irish <paul...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 20:39:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Adriana Ixba <ai...@google.com>
Comment-In-Reply-To: Alina Varkki <alina...@chromium.org>
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages