commit | d2dabacf98573366668e4ff9b171d78693248a92 | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Wed Jul 05 13:35:09 2023 +0100 |
committer | Zim <zezeozue@google.com> | Wed Jul 05 19:37:37 2023 +0100 |
tree | 401936aea2165e4b8dfd2776f7bb4471aaf770d3 | |
parent | b8c05818ba5282261a1b3ba3889d20e15c134214 [diff] |
[metrics] Add thread creation spam stats to android_task_names First added an ANDROID_THREAD_CREATION_SPAM stdlib function to find stats of rapidly created threads. To support finding thread names where only some suffix changes, e.g Thread-123, we aggreate the stats per process per thread prefix. We currently use a STR_SPLIT workaround to find prefixes by splitting thread names by some common delimiters. When we have perfetto REGEXP support, we can replace this with a more robust solution. Test: tools/diff_test_trace_processor.py out/android/trace_processor_shell Change-Id: Idfc5b89be82a709d08577b066c2db7f4f213d1b6
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.