commit | 91e41f52f1d9b650d352c444f0926e54123f195f | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Tue Nov 26 11:16:41 2024 +0000 |
committer | Primiano Tucci <primiano@google.com> | Tue Nov 26 11:37:15 2024 +0000 |
tree | d1678a0b050287da45ba96e97539b5012a16da68 | |
parent | 3e654bb00ff254585eb82219de45451561493b1e [diff] |
ui: add base/event.ts Adds a class to facilitate event listeners for cases where we want >1 listener. I find this approach of having one member per event better than the previous addEventListener('eventName') approach, as it composes better when you have a class extending another class and both emit different events. The problem there is that you can't easily have one addEventListener with different overloads. Instead it's easier to have different onXXX fields, and it's easier to see where they come from. Change-Id: Ic8b2cedf55a7dc6855b744805ebee80c3868e129
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.