commit | 5019e943a5372eb69333f32971c549057bf70c7e | [log] [tgz] |
---|---|---|
author | Zim <zezeozue@google.com> | Wed Jul 05 13:35:09 2023 +0100 |
committer | Zim <zezeozue@google.com> | Wed Jul 05 14:33:22 2023 +0100 |
tree | 32955537258df22b8189c4d5140b90b3b68f5f30 | |
parent | ad2ed918f9c60723ebd602d1c40edb3b773fdf65 [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: I3862462b17cc8f494a6f2577f05b58d7289e1044
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.