commit | 85f3d2877882044d4525348acfa825e6579ef6cb | [log] [tgz] |
---|---|---|
author | Mason Freed <masonf@chromium.org> | Mon Feb 14 02:08:22 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Feb 14 02:08:22 2022 |
tree | 57b771c9db28b8bf84e187ca9713af538448bbcc | |
parent | a966a692565d8cd1bcdf1158ed04e6efecf576ad [diff] |
Add token and byte counts to PumpTokenizer traces It is often helpful in exploring parser behavior to know how many bytes are queued, how many were parsed, and how many tokens were parsed in a single pump session. This CL adds those metrics to the trace event for HTMLDocumentParser::PumpTokenizer. To implement this, I had to add a "next" pointer to the SegmentedString class, so that HTMLInputStream can walk the entire input stream to get a size. This walk is only done when tracing is enabled, to avoid any performance penalty. Bug: 1041006 Change-Id: I7be74b67f7ae3b3f8535ebb69c276eaa1a9e425c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3451357 Auto-Submit: Mason Freed <masonf@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#970454}
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.