[LCP] Add UKM indicating that the largest candidate is animated. [chromium/src : main]

0 views
Skip to first unread message

Yoav Weiss (Gerrit)

unread,
Oct 27, 2021, 4:33:16 AM10/27/21
to asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña Moreno, Annie Sullivan, Daniel Cheng, Robert Kaplow, Mike West, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Nicolás Peña Moreno, Daniel Cheng, Annie Sullivan, Robert Kaplow, Mike West.

Patch set 6:Commit-Queue +1

View Change

2 comments:

  • Patchset:

    • Patch Set #6:

      Hey folks!

      This is adding a UKM to tell apart cases where the LCP is an animated image.
      Feel free to just review the bits you own:
      dcheng@ - for page_load_metrics.mojom
      rkaplow@ - ukm.xml
      sullivan@ and npm@ - everything else :)

  • File components/page_load_metrics/browser/observers/core/largest_contentful_paint_handler.h:

    • Patch Set #4, Line 42: ContentfulPaintTimingInfo(const ContentfulPaintTimingInfo& other);

      Changed this to appease Tricium..

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 6
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
Gerrit-Attention: Robert Kaplow <rka...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Oct 2021 08:33:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Oct 27, 2021, 4:33:44 AM10/27/21
to Mike West, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña Moreno, Annie Sullivan, Daniel Cheng, Robert Kaplow, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Nicolás Peña Moreno, Daniel Cheng, Annie Sullivan, Robert Kaplow.

Yoav Weiss removed Mike West from this change.

View Change

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 7
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
Gerrit-Attention: Robert Kaplow <rka...@chromium.org>
Gerrit-MessageType: deleteReviewer

Nicolás Peña Moreno (Gerrit)

unread,
Oct 27, 2021, 10:25:19 AM10/27/21
to Yoav Weiss, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Annie Sullivan, Daniel Cheng, Robert Kaplow, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Yoav Weiss, Annie Sullivan, Robert Kaplow.

View Change

1 comment:

  • Patchset:

    • Patch Set #7:

      Seems this depends on the CL that got reverted, so no review needed yet?

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 7
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Annie Sullivan <sull...@chromium.org>
Gerrit-Attention: Robert Kaplow <rka...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Oct 2021 14:25:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Annie Sullivan (Gerrit)

unread,
Oct 27, 2021, 10:27:28 AM10/27/21
to Yoav Weiss, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Nicolás Peña Moreno, Daniel Cheng, Robert Kaplow, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Daniel Cheng, Yoav Weiss, Robert Kaplow.

View Change

1 comment:

  • Patchset:

    • Patch Set #7:

      Overall I think this is great, but do you think we could change it to a set of flags about the LCP? Some I can think of that we may want:

      IsText
      IsImage
      IsVideo
      IsAnimated
      IsFullViewport
      Is(SVG|GIF|JPG|PNG|Whatever)

      We don't have to implement every possibility right away, but using a flag would make adding features easy.

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 7
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Robert Kaplow <rka...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Oct 2021 14:27:06 +0000

Daniel Cheng (Gerrit)

unread,
Oct 27, 2021, 2:39:42 PM10/27/21
to Yoav Weiss, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Daniel Cheng, Nicolás Peña Moreno, Annie Sullivan, Robert Kaplow, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Yoav Weiss, Robert Kaplow.

Patch set 7:Code-Review +1

View Change

2 comments:

  • Patchset:

    • Patch Set #7:

      LGTM from the Mojo perspective. I glanced over the Blink portions as well, but I don't have much insight to add there—it looks reasonable to me anyway :)

      (If there are significant changes that would affect IPC, please ping me and I will re-review)

  • File components/page_load_metrics/browser/observers/core/largest_contentful_paint_handler.h:

    • Patch Set #4, Line 42: ContentfulPaintTimingInfo(const ContentfulPaintTimingInfo& other);

      Changed this to appease Tricium..

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 7
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Robert Kaplow <rka...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Oct 2021 18:39:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>
Gerrit-MessageType: comment

Robert Kaplow (Gerrit)

unread,
Oct 28, 2021, 11:22:54 AM10/28/21
to Yoav Weiss, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Daniel Cheng, Nicolás Peña Moreno, Annie Sullivan, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Yoav Weiss.

Patch set 7:Code-Review +1

View Change

1 comment:

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 7
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Comment-Date: Thu, 28 Oct 2021 15:22:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Oct 30, 2021, 4:44:59 PM10/30/21
to asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, bmcquad...@chromium.org, core-web-vita...@chromium.org, csharris...@chromium.org, ipc-securi...@chromium.org, loading-rev...@chromium.org, speed-metr...@chromium.org, tommcke...@chromium.org, Robert Kaplow, Daniel Cheng, Nicolás Peña Moreno, Annie Sullivan, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Yoav Weiss.

Patch set 12:Commit-Queue +1

View Change

2 comments:

  • File chrome/browser/page_load_metrics/observers/core/ukm_page_load_metrics_observer.cc:

    • Patch Set #12, Line 643: builder.SetPaintTiming_LargestContentfulPaintIsAnimatedImage(

      sullivan@ - Do we want to report each type separately to UKM, or do we want to just report the uint bit-set of all the flags?

    • Patch Set #12, Line 837: .SetPaintTiming_ExperimentalLargestContentfulPaint_ContentType(

      RE the "content type", I renamed the methods (to avoid confusion), but not sure what renaming the metric entails. Do we need to expose an alternative one and deprecate? Can we just rename?
      Also, in the doc, you mentioned we'd want to include this info in the flag bit-set. The same questions apply if we'd want to take this route.

To view, visit change 3245540. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia90825e33aa6200b68671b16af9ab691ae1c9f30
Gerrit-Change-Number: 3245540
Gerrit-PatchSet: 12
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Annie Sullivan <sull...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Nicolás Peña Moreno <n...@chromium.org>
Gerrit-Reviewer: Robert Kaplow <rka...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Comment-Date: Sat, 30 Oct 2021 20:44:45 +0000
Reply all
Reply to author
Forward
0 new messages