commit | 7a19b64c0a03cb739ec195fde5c47d10e82f576d | [log] [tgz] |
---|---|---|
author | Andrés Olivares <andoli@chromium.org> | Wed Feb 08 09:43:21 2023 +0000 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 09 15:29:58 2023 +0000 |
tree | a417c7cc21412d1e80eca6fa7c313f84d61ff7c6 | |
parent | 6b45419a60e369ab2c150026bf6e0958df0e9d55 [diff] |
[RPP] Refactor the `draw` function into multiple functions for simplicity The `draw` function in the FlameChart class draws the perf panel flame chart into the canvas. Due to the complexity of the data being drawn and little use of helper functions, the function was too long and hard to understand. This CL splits the function into multiple helper functions, aiming to improve readability. Each function is also documented with a short description. Bug: 1386091 Change-Id: I24b5325b4d1ed133d4ae81bd5c4c54149e59fc8b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4231014 Commit-Queue: Andres Olivares <andoli@chromium.org> Reviewed-by: Nancy Li <nancyly@chromium.org>
The client-side of the Chrome DevTools, including all JS & CSS to run the DevTools webapp.
The frontend is available on chromium.googlesource.com.
Check out the project documentation for instructions to set up, use, and maintain a DevTools front-end checkout, as well as design guidelines, and architectural documentation.
DevTools frontend repository is mirrored on GitHub.
DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES modules, so consuming this package in other tools may require some effort.
The version number of the npm package (e.g. 1.0.373466
) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.