commit | 607afec8233d4c3ca2b401a4a6570a4c7b600b28 | [log] [tgz] |
---|---|---|
author | Benoit Lize <lizeb@chromium.org> | Thu Jun 30 15:17:27 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 30 15:17:27 2022 |
tree | 72a2125065a0f5a52f05942af43ef8c6e2a90c2e | |
parent | 081a76b400554331128755c548b85529e9e3cd47 [diff] |
[cc] Subsample per-draw metrics Some metrics are recorded each time we draw. This is unnecessary, we draw frames often enough to not need all these data points, and metrics recording is not completely free. Furthermore, this code actually acquires a lock at each call, which might cause issues (even though the lock is not contended). As a result, only record the metrics 1% of the time. Using the default RNG makes a system call at every sample. base: :InsecureRandomGenerator as this is only for metrics recording, and Change-Id: I9354fe26a5f8d821e7f0ca921157266fafa8650e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3688092 Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Commit-Queue: Benoit Lize <lizeb@chromium.org> Cr-Commit-Position: refs/heads/main@{#1019643}
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.