Record various UMA metrics relevant to the MediaVideoVisibilityTracker [chromium/src : main]

0 views
Skip to first unread message

Frank Liberato (Gerrit)

unread,
Apr 11, 2024, 4:06:07 PMApr 11
to Benjamin Keen, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
Attention needed from Benjamin Keen

Frank Liberato added 3 comments

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 109, Patchset 2 (Latest): const int kNumBuckets = 3;
Frank Liberato . unresolved

from our offline discussion: this will create "low / medium / high" buckets, which is likely not what you want.

Line 209, Patchset 2 (Latest): RecordHitTestNodeAction(HitTestNodeAction::kIgnoreVideoElement);
Frank Liberato . unresolved

per offline conversation, this is going to count the number of occlusion computations, since there's exactly one video per computation.

Line 225, Patchset 2 (Latest): RecordHitTestNodeAction(HitTestNodeAction::kIgnoreZeroEffectiveOpacity);
Frank Liberato . unresolved

per offline conversation, it might be better to sum up the number of these for the entire computation, similar to `total_hit_tested_nodes_`, else we'll just get a single total count of all zero opacity elements observed by all invocations of this algorithm by all clients.

in contrast, keeping the total here and recording that total once when the algorithm completes will show the distribution of # of zero opacity elements encountered per run of the algorithm by all clients -- we can see what percentage has 0, or 1, or 10 elements. won't tell us the total number of elements so maybe percent would be better / in addition to, but not sure.

Open in Gerrit

Related details

Attention is currently required from:
  • Benjamin Keen
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
Gerrit-Change-Number: 5441915
Gerrit-PatchSet: 2
Gerrit-Owner: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Benjamin Keen <bk...@google.com>
Gerrit-Comment-Date: Thu, 11 Apr 2024 20:05:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Benjamin Keen (Gerrit)

unread,
Apr 12, 2024, 2:18:05 PMApr 12
to Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
Attention needed from Frank Liberato

Benjamin Keen voted and added 3 comments

Votes added by Benjamin Keen

Commit-Queue+1

3 comments

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 109, Patchset 2: const int kNumBuckets = 3;
Frank Liberato . resolved

from our offline discussion: this will create "low / medium / high" buckets, which is likely not what you want.

Benjamin Keen

Thanks for pointing this out.

After some investigation, there is a way to get fine grained info by using [linear histograms]. With the caveat that the `exclusive_max` is capped at `101`.

Chatting with Evan, seems like the best solution here is to record the lower values with a linear histogram, and in addition use a count histogram. That way we can have the fine granularity for the smaller values + overall distribution.

[linear histograms]: https://source.chromium.org/chromium/chromium/src/+/main:base/metrics/histogram_macros.h;l=127;drc=a0782e8a696dc65f1bf525c5ded9df265eb3cd36

Line 209, Patchset 2: RecordHitTestNodeAction(HitTestNodeAction::kIgnoreVideoElement);
Frank Liberato . resolved

per offline conversation, this is going to count the number of occlusion computations, since there's exactly one video per computation.

Benjamin Keen

Ackd, just removed this.

Line 225, Patchset 2: RecordHitTestNodeAction(HitTestNodeAction::kIgnoreZeroEffectiveOpacity);
Frank Liberato . resolved

per offline conversation, it might be better to sum up the number of these for the entire computation, similar to `total_hit_tested_nodes_`, else we'll just get a single total count of all zero opacity elements observed by all invocations of this algorithm by all clients.

in contrast, keeping the total here and recording that total once when the algorithm completes will show the distribution of # of zero opacity elements encountered per run of the algorithm by all clients -- we can see what percentage has 0, or 1, or 10 elements. won't tell us the total number of elements so maybe percent would be better / in addition to, but not sure.

Benjamin Keen

Updated the metrics to be similar to `total_hit_tested_nodes_`. That way we can tell the counts/percentages per algorithm run (complete meets visibility check) for all clients.

Open in Gerrit

Related details

Attention is currently required from:
  • Frank Liberato
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
Gerrit-Change-Number: 5441915
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Frank Liberato <libe...@chromium.org>
Gerrit-Comment-Date: Fri, 12 Apr 2024 18:17:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Frank Liberato <libe...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Frank Liberato (Gerrit)

unread,
Apr 16, 2024, 11:34:47 AMApr 16
to Benjamin Keen, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
Attention needed from Benjamin Keen

Frank Liberato added 2 comments

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
Line 84, Patchset 4 (Latest): int total_hit_tested_nodes_ = 0;
Frank Liberato . unresolved

this is works, but it depends on resetting these each time and not forgetting. i think it'd be less fragile if they weren't members at all.

for example, consider creating a nested struct:

```
struct Metrics {
int total_hit_tested... = 0;
/// and so on
};
```

then you can create an instance on the stack in `OnIntersectionChanged`, and pass it to the bound function and the reporting function. that will make sure it's always initialized to zero at the start. it's also a little clearer in that it doesn't look like long-running state anymore; it shows up, is used, and is destroyed in the scope of one function.

File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
Line 333, Patchset 4 (Latest):
Frank Liberato . unresolved

from the .h file: this is where you'd have a local struct with the counters, and bind it @336 and send it as an argument to @340. if i understand correctly, then it's only within this scope that it needs to exist.

Open in Gerrit

Related details

Attention is currently required from:
  • Benjamin Keen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
    Gerrit-Change-Number: 5441915
    Gerrit-PatchSet: 4
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Benjamin Keen <bk...@google.com>
    Gerrit-Comment-Date: Tue, 16 Apr 2024 15:34:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Benjamin Keen (Gerrit)

    unread,
    Apr 16, 2024, 2:33:53 PMApr 16
    to Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
    Attention needed from Frank Liberato

    Benjamin Keen added 1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Frank Liberato . unresolved

    from the .h file: this is where you'd have a local struct with the counters, and bind it @336 and send it as an argument to @340. if i understand correctly, then it's only within this scope that it needs to exist.

    Benjamin Keen

    Doing this would mean changing the `ComputeOcclusion` signature. At the moment it just expects a `const Node& node` [1]. This is why I have the counters as member variables, unless I am misunderstanding your suggestion?

    [1]: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/hit_test_request.h;l=72-73;drc=24b30318d4a0e2285d9299f684a6d8ca46f5e856

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Frank Liberato
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
    Gerrit-Change-Number: 5441915
    Gerrit-PatchSet: 4
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Frank Liberato <libe...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Apr 2024 18:33:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Frank Liberato <libe...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Frank Liberato (Gerrit)

    unread,
    Apr 16, 2024, 3:50:37 PMApr 16
    to Benjamin Keen, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
    Attention needed from Benjamin Keen

    Frank Liberato added 1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Frank Liberato . unresolved

    from the .h file: this is where you'd have a local struct with the counters, and bind it @336 and send it as an argument to @340. if i understand correctly, then it's only within this scope that it needs to exist.

    Benjamin Keen

    Doing this would mean changing the `ComputeOcclusion` signature. At the moment it just expects a `const Node& node` [1]. This is why I have the counters as member variables, unless I am misunderstanding your suggestion?

    [1]: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/hit_test_request.h;l=72-73;drc=24b30318d4a0e2285d9299f684a6d8ca46f5e856

    Frank Liberato

    it would only change the signature of the method in this class to include an extra argument, but the resulting BindRepeating signature would not change since you'd also bind an extra argument. i.e., it's just a local change to this class, and the hit tester would still send in a `const Node&`.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Benjamin Keen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
    Gerrit-Change-Number: 5441915
    Gerrit-PatchSet: 4
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Benjamin Keen <bk...@google.com>
    Gerrit-Comment-Date: Tue, 16 Apr 2024 19:50:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Frank Liberato <libe...@chromium.org>
    Comment-In-Reply-To: Benjamin Keen <bk...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Benjamin Keen (Gerrit)

    unread,
    Apr 16, 2024, 8:31:42 PMApr 16
    to Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
    Attention needed from Frank Liberato

    Benjamin Keen added 2 comments

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
    Line 84, Patchset 4: int total_hit_tested_nodes_ = 0;
    Frank Liberato . resolved

    this is works, but it depends on resetting these each time and not forgetting. i think it'd be less fragile if they weren't members at all.

    for example, consider creating a nested struct:

    ```
    struct Metrics {
    int total_hit_tested... = 0;
    /// and so on
    };
    ```

    then you can create an instance on the stack in `OnIntersectionChanged`, and pass it to the bound function and the reporting function. that will make sure it's always initialized to zero at the start. it's also a little clearer in that it doesn't look like long-running state anymore; it shows up, is used, and is destroyed in the scope of one function.

    Benjamin Keen

    Done

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
    Line 333, Patchset 4:
    Frank Liberato . resolved

    from the .h file: this is where you'd have a local struct with the counters, and bind it @336 and send it as an argument to @340. if i understand correctly, then it's only within this scope that it needs to exist.

    Benjamin Keen

    Doing this would mean changing the `ComputeOcclusion` signature. At the moment it just expects a `const Node& node` [1]. This is why I have the counters as member variables, unless I am misunderstanding your suggestion?

    [1]: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/hit_test_request.h;l=72-73;drc=24b30318d4a0e2285d9299f684a6d8ca46f5e856

    Frank Liberato

    it would only change the signature of the method in this class to include an extra argument, but the resulting BindRepeating signature would not change since you'd also bind an extra argument. i.e., it's just a local change to this class, and the hit tester would still send in a `const Node&`.

    Benjamin Keen

    Here I thought I was starting to understand callbacks :).

    That makes sense and this is much cleaner. Thanks for the suggestion!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Frank Liberato
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • 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: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
    Gerrit-Change-Number: 5441915
    Gerrit-PatchSet: 5
    Gerrit-Owner: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
    Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Frank Liberato <libe...@chromium.org>
    Gerrit-Comment-Date: Wed, 17 Apr 2024 00:31:32 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Frank Liberato (Gerrit)

    unread,
    Apr 17, 2024, 12:55:56 AMApr 17
    to Benjamin Keen, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
    Attention needed from Benjamin Keen

    Frank Liberato added 1 comment

    File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
    Line 19, Patchset 5 (Latest):struct Metrics;
    Frank Liberato . unresolved

    i think this would be better off as a nested struct inside MediaVideoVisibilityTracker, rather than an struct in an anonymous namespace. the reason is that everything that includes this file will also get a forward declaration of a `Metrics` struct in an anonymous namespace, which isn't great. if they tried to declare a `Metrics` (e.g.) class or anything else in their anonymous namespace, then i think it'd conflict.

    putting it inside the main class hides it, since we're already forced to assume that MVVT is uniquely named. putting the Metrics struct inside MVVT is pretty much the same as putting it in the MVVT namespace, at least conceptually. so, it won't conflict with anything there.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Benjamin Keen
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
      Gerrit-Change-Number: 5441915
      Gerrit-PatchSet: 5
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Wed, 17 Apr 2024 04:55:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Benjamin Keen (Gerrit)

      unread,
      Apr 17, 2024, 6:53:09 AMApr 17
      to Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
      Attention needed from Frank Liberato

      Benjamin Keen added 1 comment

      File third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
      Line 19, Patchset 5:struct Metrics;
      Frank Liberato . resolved

      i think this would be better off as a nested struct inside MediaVideoVisibilityTracker, rather than an struct in an anonymous namespace. the reason is that everything that includes this file will also get a forward declaration of a `Metrics` struct in an anonymous namespace, which isn't great. if they tried to declare a `Metrics` (e.g.) class or anything else in their anonymous namespace, then i think it'd conflict.

      putting it inside the main class hides it, since we're already forced to assume that MVVT is uniquely named. putting the Metrics struct inside MVVT is pretty much the same as putting it in the MVVT namespace, at least conceptually. so, it won't conflict with anything there.

      Benjamin Keen

      Done. Thanks!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Frank Liberato
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
      Gerrit-Change-Number: 5441915
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Frank Liberato <libe...@chromium.org>
      Gerrit-Comment-Date: Wed, 17 Apr 2024 10:52:57 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Frank Liberato <libe...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Frank Liberato (Gerrit)

      unread,
      Apr 17, 2024, 11:18:09 AMApr 17
      to Benjamin Keen, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
      Attention needed from Benjamin Keen

      Frank Liberato voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Benjamin Keen
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
      Gerrit-Change-Number: 5441915
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Wed, 17 Apr 2024 15:17:56 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Benjamin Keen (Gerrit)

      unread,
      Apr 17, 2024, 1:10:49 PMApr 17
      to Evan Liu, Dale Curtis, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
      Attention needed from Dale Curtis and Evan Liu

      Benjamin Keen added 1 comment

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Benjamin Keen . resolved

      Adding:

      evliu@ for: t/m/h/m/m/histograms.xml and
      dalecurtis@ for: t/b/r/c/h/m/media_video_visibility_tracker.h|cc

      Thanks!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dale Curtis
      • Evan Liu
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
      Gerrit-Change-Number: 5441915
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Evan Liu <ev...@google.com>
      Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
      Gerrit-Attention: Evan Liu <ev...@google.com>
      Gerrit-Comment-Date: Wed, 17 Apr 2024 17:10:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dale Curtis (Gerrit)

      unread,
      Apr 17, 2024, 1:30:05 PMApr 17
      to Benjamin Keen, Evan Liu, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
      Attention needed from Benjamin Keen and Evan Liu

      Dale Curtis voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Benjamin Keen
      • Evan Liu
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
      Gerrit-Change-Number: 5441915
      Gerrit-PatchSet: 6
      Gerrit-Owner: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
      Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
      Gerrit-Reviewer: Evan Liu <ev...@google.com>
      Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Evan Liu <ev...@google.com>
      Gerrit-Attention: Benjamin Keen <bk...@google.com>
      Gerrit-Comment-Date: Wed, 17 Apr 2024 17:29:53 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Evan Liu (Gerrit)

      unread,
      Apr 19, 2024, 4:13:21 PMApr 19
      to Benjamin Keen, Dale Curtis, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org
      Attention needed from Benjamin Keen

      Evan Liu voted and added 2 comments

      Votes added by Evan Liu

      Code-Review+1

      2 comments

      Patchset-level comments
      Evan Liu . resolved

      Oops sorry I missed this!

      File tools/metrics/histograms/metadata/media/histograms.xml
      Line 4230, Patchset 6 (Latest):<histogram
      Evan Liu . unresolved

      optional nit: you could use patterned histograms to avoid having to define so many different histograms

      https://chromium.googlesource.com/chromium/src/tools/+/HEAD/metrics/histograms/README.md#Patterned-Histograms

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Benjamin Keen
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
        Gerrit-Change-Number: 5441915
        Gerrit-PatchSet: 6
        Gerrit-Owner: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Attention: Benjamin Keen <bk...@google.com>
        Gerrit-Comment-Date: Fri, 19 Apr 2024 20:13:08 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Benjamin Keen (Gerrit)

        unread,
        Apr 22, 2024, 8:29:07 PMApr 22
        to Evan Liu, Dale Curtis, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org

        Benjamin Keen added 1 comment

        File tools/metrics/histograms/metadata/media/histograms.xml
        Line 4230, Patchset 6:<histogram
        Evan Liu . resolved

        optional nit: you could use patterned histograms to avoid having to define so many different histograms

        https://chromium.googlesource.com/chromium/src/tools/+/HEAD/metrics/histograms/README.md#Patterned-Histograms

        Benjamin Keen

        That's great, done!

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
        Gerrit-Change-Number: 5441915
        Gerrit-PatchSet: 8
        Gerrit-Owner: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Comment-Date: Tue, 23 Apr 2024 00:28:54 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Evan Liu <ev...@google.com>
        satisfied_requirement
        open
        diffy

        Benjamin Keen (Gerrit)

        unread,
        Apr 22, 2024, 9:21:47 PMApr 22
        to Evan Liu, Dale Curtis, Tricium, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org

        Benjamin Keen voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
        Gerrit-Change-Number: 5441915
        Gerrit-PatchSet: 8
        Gerrit-Owner: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Comment-Date: Tue, 23 Apr 2024 01:21:33 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Apr 22, 2024, 9:25:35 PMApr 22
        to Benjamin Keen, Evan Liu, Dale Curtis, Tricium, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, asvitkine...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, blundell+...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, poscia...@chromium.org

        Chromium LUCI CQ submitted the change with unreviewed changes

        Unreviewed changes

        6 is the latest approved patch-set.
        The change was submitted with unreviewed changes in the following files:

        ```
        The name of the file: tools/metrics/histograms/metadata/media/histograms.xml
        Insertions: 48, Deletions: 146.

        The diff is too large to show. Please review the diff.
        ```
        ```
        The name of the file: third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
        Insertions: 10, Deletions: 5.

        The diff is too large to show. Please review the diff.
        ```
        ```
        The name of the file: chrome/browser/picture_in_picture/auto_picture_in_picture_tab_helper_browsertest.cc
        Insertions: 13, Deletions: 9.

        The diff is too large to show. Please review the diff.
        ```

        Change information

        Commit message:
        Record various UMA metrics relevant to the MediaVideoVisibilityTracker

        The new metrics will help track information regarding:

        * How much time is spent computing occluding area
        * Various counts/percentages

        All these metrics will help us identify bottlenecks, prioritize
        performance improvements, and overall better understand how the
        MediaVideoVisibilityTracker perform/behaves on the Web.
        Bug: 40275580, b/332770434
        Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
        Commit-Queue: Benjamin Keen <bk...@google.com>
        Reviewed-by: Dale Curtis <dalec...@chromium.org>
        Reviewed-by: Evan Liu <ev...@google.com>
        Reviewed-by: Frank Liberato <libe...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1291011}
        Files:
        • M chrome/browser/picture_in_picture/auto_picture_in_picture_tab_helper_browsertest.cc
        • M third_party/blink/renderer/core/html/media/media_video_visibility_tracker.cc
        • M third_party/blink/renderer/core/html/media/media_video_visibility_tracker.h
        • M tools/metrics/histograms/metadata/media/histograms.xml
        Change size: L
        Delta: 4 files changed, 309 insertions(+), 8 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Dale Curtis, +1 by Frank Liberato, +1 by Evan Liu
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaecabc0b732b4d0bf2e098feace81e3e525e09fd
        Gerrit-Change-Number: 5441915
        Gerrit-PatchSet: 9
        Gerrit-Owner: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Benjamin Keen <bk...@google.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Evan Liu <ev...@google.com>
        Gerrit-Reviewer: Frank Liberato <libe...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages