commit | be91d8adfe054c58bbb0ea1711b01ecaeec7e9c4 | [log] [tgz] |
---|---|---|
author | Svend Larsen <svend@chromium.org> | Wed Jan 29 19:55:31 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 29 19:55:31 2025 |
tree | 053620712bf2436b3f5d0c5384ce4df12948b524 | |
parent | e300acf3e5af2bba91bd8699aebae1f63f5c2994 [diff] |
[BTM] Report page visit duration from BtmPageVisitObserver I computed duration using base::Time (wall-clock time) rather than base::TimeTicks (monotonically increasing counter) because, although wall-clock time can produce surprising results like negative durations, the implementation notes for base::TimeTicks say that it's not recommended for long durations due to platform-dependent implementation details, such as whether the counter increments while the process is asleep. I think a low but consistent rate of wall-clock weirdness is preferable to skewing visit durations by platform. Design: go/btm-page-visit-observer Bug: 390201794 Change-Id: I920a2734f30c0b092d955fedb9600a0b485156e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6208809 Commit-Queue: Svend Larsen <svend@chromium.org> Reviewed-by: Ryan Tarpine <rtarpine@chromium.org> Cr-Commit-Position: refs/heads/main@{#1413082}
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.