commit | 10f71d2cc3da217d0cb3891274e3c84e4018368c | [log] [tgz] |
---|---|---|
author | Will Burr <wgb@google.com> | Thu Apr 07 11:21:29 2022 +0000 |
committer | Will Burr <wgb@google.com> | Thu Apr 07 22:33:59 2022 +0000 |
tree | c17a1f7410ea6b6e594047197d0d3a0c890bd02f | |
parent | 91ae5d4e524b667ad9f6b3e29e835977fb72b7af [diff] |
CanProfileAndroid: Inherit app profileability for SDK sandbox process If the process being profiled is an SDK sandbox process then the uid is mapped to the corresponding app process uid before profileable and debuggable checks take place. This allows the SDK sandbox process to be profiled when the corresponding app is profileable. Bug: 228169493 Test: perfetto_unittests --gtest_filter=CanProfileAndroidTest.* Test: tools/heap_profile -n [sdk_sandbox_process] Test: tools/cpu_profile -n [sdk_sandbox_process] Change-Id: I0e977b693f9106e55a09df043b0fdf7a9814456e
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.