commit | f4a011ab300f4f971cbba4b451356a45d122b2bc | [log] [tgz] |
---|---|---|
author | Florian Leimgruber <fleimgruber@google.com> | Wed Jul 10 12:52:21 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 10 12:52:21 2024 |
tree | 05f4d5aecc1c8501d6b1c08bc4f47112642ce2dc | |
parent | 9548e0caf51dead04fbe6c2047e1b01c392f8a82 [diff] |
Emit deduplication metrics on main thread Currently, deduplication metrics are emitted on a background thread at startup, since their computation is O(#profiles^2). This caused the rollout to fail due to thread safety issues [1]. This CL removes the logic that posts the computation on a background thread. Since the code is behind the AutofillLogDeduplicationMetrics feature flag, let's see if this causes any startup time regressions. Since most users have very few profiles, this might actually be fine. [1] https://docs.google.com/document/d/1_IjAlPJrAsiKslCfgeXZqGk2MMuH9UlImoXEa1UlbUE/edit?tab=t.0 Bug: 325452461 Change-Id: I670394e58d8b813187f46d75af45d356b5b1b90c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5691472 Reviewed-by: Jihad Hanna <jihadghanna@google.com> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Florian Leimgruber <fleimgruber@google.com> Cr-Commit-Position: refs/heads/main@{#1325427}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.