commit | 3f4cdae63fe239d3cc3b9516578a56455ec3d3e6 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Mon Jan 15 17:49:53 2018 -0800 |
committer | Andreas Gampe <agampe@google.com> | Fri Jan 19 14:29:01 2018 -0800 |
tree | 4b27af6b2f06440347abc77998fc527417d238b9 | |
parent | 901c1cccb0610b21e5ba7904f15b64756ddf635f [diff] |
Perfprofd: Add process name to sampling To distinguish samples in similarly-named threads (not being uncommon because of unnamed Java threads or common functionality like GC, async tasks, etc.), record the name of the process (defined to be the comm of the process with pid == tid) in program samples. Currently this is encoded as an index into a ProcessNames table. Test: mmma system/extras/perfprofd Test: perfprofd_test Change-Id: I146f9335d9edecba6b7fcefa71a735a185ba2270