commit | 4d9665baaf17b8a716d90c499dc057e822a1a633 | [log] [tgz] |
---|---|---|
author | Daniele Di Proietto <ddiproietto@google.com> | Wed Nov 24 18:25:46 2021 +0000 |
committer | Daniele Di Proietto <ddiproietto@google.com> | Thu Nov 25 11:31:17 2021 +0000 |
tree | f5f45a6afc5a03d98c26be94591b5777348bfad4 | |
parent | cfcbc644fead86924ae5d925ce61297e1ce0c7d5 [diff] |
java_hprof: Regenerate the list of pids on continuous dump. With this change, by default, the java heap profiler will rescan all the processes every time when operating in continuous dump mode. This is useful to collect data on processes that are not yet started when tracing starts. Tests: * Regression: take a single java heap dump with a process name `./tools/java_heap_dump -n com.android.messaging` * Regression: take a single java heap dump with a pid `./tools/java_heap_dump -p 3998` * Regression: take a continuous java heap dump with an existing process name `./tools/java_heap_dump -n com.android.messaging -c 2000 --no-stop-when-done` * Regression: take a continuous java heap dump with an existing pid `./tools/java_heap_dump -p 3998 -c 2000 --no-stop-when-done` * New behavior: take a continuous java heap dump with the name of a process that gets started later. * `adb shell killall com.android.messaging` * `./tools/java_heap_dump -c com.android.messaging -c 2000 --no-stop-when-done` * Wait a bit * Start the messaging app Bug: 200534390 Change-Id: I89bac451d6803b73009ad669bff31fbb487b9d58
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.