commit | 3b4d92edac999971b8d5b1fa173932ce8768e35c | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Fri May 10 11:02:56 2024 +0100 |
committer | Primiano Tucci <primiano@google.com> | Fri May 10 11:02:56 2024 +0100 |
tree | 25840cfe82a6141c8891f2ebafc3367a43cff007 | |
parent | 209d4bfd2942b47edaf7d0788969ce1a52745de0 [diff] |
ui: add ability to open traces via POST /_open_trace/xxxx This change makes it possible to open traces by simply doing a HTTP POST operation on https://ui.perfetto.dev/_open_trace/ via a <form>. This allows: 1. Easier integration from other dashboards, even in presence of cross-origin isolation (which applies to fetch, but not <form>) without requiring popups. 2. Allows in future to solve the teardown problem and open a 2nd trace in the UI by replacing the current window with a fresh UI state (a follow up CL is required for this). The main downside is that this works only after the serviceworker has been registered. In other words, this works only after the user has visited ui.perfetto.dev once. I think this is easily solvable by adding an error page to handle /_open_trace on ui.perfetto.dev that explains what's happening. Bug: 337296884 Change-Id: I543b76481c400cfb4e9947252ce89964655e247e
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.