commit | c88c89a3520dedc727c0d88d50e18e5d35044f37 | [log] [tgz] |
---|---|---|
author | Sami Kyöstilä <skyostil@google.com> | Mon Jul 11 15:29:23 2022 +1000 |
committer | Sami Kyostila <skyostil@google.com> | Tue Jul 12 07:25:37 2022 +0000 |
tree | 5fa5e98c85915ff1b209138e0904d89ba1a7df2b | |
parent | 54634858ab4393f0256ef06112f88ae6021b0662 [diff] |
tracing: Add API to shut down Perfetto This patch adds an API call to shut down the Perfetto SDK and release any OS-level resources (threads, files, sockets, etc.). Note that it's not possible to reinitialize Perfetto again in the same process after shutdown. Instead, this call is meant for ensuring no Perfetto-related threads are running so that the entire module using Perfetto can be unloaded with dlclose(). (Cherry-pick of https://android-review.googlesource.com/c/platform/external/perfetto/+/2146891) Bug: b/237740008 Test: `adb shell cmd gpu vkjson` => check that virgl_render_server doesn't crash Change-Id: If82163f12c2eb426dae9cc99ccd9eb3b25bae741
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.