commit | 816a39452c97fba8945c55469f96713d436fee7e | [log] [tgz] |
---|---|---|
author | Egor Pasko <pasko@chromium.org> | Mon Jul 04 18:03:23 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 04 18:03:23 2022 |
tree | f34e05b5e16c444e89379cd093268c81306fcd39 | |
parent | 3244b11310257bda1731759df8a141db77d65f47 [diff] |
base/android: Revive ThreadInstructionCount::Now() Convenience wrappers around __NR_perf_event_open. They were recently removed as part of cleanup in tracing [1]. Bring it back as a standalone utility, only for Android. It allows to roughly compare performance of two functions that are being called frequently. Recent example of such estimation: [2]. [1] Remove Support for Instruction Count http://crrev.com/1016741 [2] Reduce overhead from numerous calls to IsFeatureEnabled() http://crbug.com/1341292 Bug: 1341292 Change-Id: I000f0f823d945efcaf4025964de1dbd1025db580 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3738191 Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Egor Pasko <pasko@chromium.org> Cr-Commit-Position: refs/heads/main@{#1020632}
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.