commit | 711de1f2969da9b0b34cec608df15fd68e055b7b | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Mon Mar 04 11:11:33 2019 +0000 |
committer | Primiano Tucci <primiano@google.com> | Mon Mar 04 11:11:33 2019 +0000 |
tree | 752786f612436a40c9b100b47306a0156343562d | |
parent | 640200f64d14b57e858d66865abf4c8716ab14f3 [diff] |
TraceProcessor: improve process tracking to follow fork()/clone() Improves the thread<>process tracking by following task_newtask (fork() and clone()) and task_rename events. When a thread spawn is detected (e.g., A spawns B), it associates both of them under the same TGID, even if the TGID of neither of them is known. When the TGID of either of them is known it maps both threads under the same process. Furthermore this CL cleans up the process tracker and fixes the UI recording page to record task_newtask instead of process_fork: they seem equivalent but only task_newtask contains the clone_flags that are necessary to distinguish process fork() vs thread clone(CLONE_THREAD). Bug: 119616981 Bug: 123602580 Test: tools/diff_test_trace_processor.py Change-Id: I0df00aa355afa57a04f62c4d9f3a543b6d28820e
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.