commit | ba396db0bbe857326832e35d5c91fb5e520f5d28 | [log] [tgz] |
---|---|---|
author | Hector Dearman <hjd@google.com> | Mon Jul 03 18:25:08 2023 +0100 |
committer | Hector Dearman <hjd@google.com> | Mon Jul 03 18:25:08 2023 +0100 |
tree | 0d02752d688c998521cb8072431c8a77211709f4 | |
parent | dee43f4d425d07caef7b9bbd7d795480e5d0da9d [diff] |
ui: Move rafScheduler out of globals RafScheduler is one of the few things that does deserve to be its own static singleton as it's a) legitimately used from almost everywhere, b) it has a lifetime matching that of the application. We still want to get rid of globals though so move it out from globals and update all the imports. This reduces the: - number of files that import globals, 142 -> 120 - reduces the number of uses of globals, 1109 -> 956 Remaining top offenders: ...snip... 19 globals.logging 20 globals.getCurrentEngine 21 globals.publishRedraw 24 globals.makeSelection 103 globals.frontendLocalState 196 globals.dispatch 344 globals.state Change-Id: I9333a6e9ee943bb820003e7391bb732eb3a9b1bd
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.