-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116] Add metrics to FLEDGE Latency UKM on ScoreAd and its dependenc…
…ies. IMPORTANT: This has one significant side effect on PrivateAggregationTimings! script_run_time and signals_fetch_time are recorded in InterestGroupAuction::OnScoreAdComplete(); prior to this change, a zero time is recorded for both of these when the script encounters an error, i.e. when SellerWorklet::V8State::PostScoreAdCallbackToUserThreadOnError was called; after this change, the actual script/signal-load times are recorded instead. This is because the same fields (scoring_latency and score_ad_dependency_latencies) are used for both PA Timings and the UKM metric. Beyond that, the rest of this change is strictly the addition of new UKM metrics to the AdsInterestGroup.AuctionLatency.V2 event. In previous commits, reviewed as https://chromium-review.googlesource.com/c/chromium/src/+/4359997 and https://chromium-review.googlesource.com/c/chromium/src/+/4386873, we added metrics for the latency of GenerateBid and its surrounding flow, including metrics around delays caused by high-latency inputs to GenerateBid. This commit adds the analogous metrics for ScoreAd and its high-latency inputs. As with those earlier commits, this adds several metrics: 1. ScoreAdFlowLatency reflects the latency of the entire ScoreAd flow, from InterestGroupAuction::ScoreBidIfReady to InterestGroupAuction::OnScoreAdComplete. 2. ScoreAdLatency reflects the latency of only the call to V8State::ScoreAd, a component of the flow reflected in (1). 3. ScoreAdCodeReadyLatency, ScoreAdDirectFromSellerSignalsLatency, and ScoreAdTrustedScoringSignalsLatency metrics reflect the latency and critical path latency (delay) of each of these dependencies that must be satisfied before V8State::ScoreAd can run. (cherry picked from commit 9d5ce47) Bug: 1424365 Change-Id: I1aaaa336991d818d142ba5e93ec9024d5ac053a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4584089 Reviewed-by: Maks Orlovich <morlovich@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Orr Bernstein <orrb@google.com> Reviewed-by: Sun Yueru <yrsun@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1161948} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4643818 Reviewed-by: Robert Kaplow <rkaplow@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#184} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Showing
11 changed files
with
1,421 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.