commit | 5f43fc4ac870b49542b4cf530a3729f9f1e0e9ab | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Tue Dec 13 13:47:49 2016 -0800 |
committer | Yabin Cui <yabinc@google.com> | Tue Dec 13 13:55:50 2016 -0800 |
tree | 860ed3a71701008fe72152a4ed938c31b702ca28 | |
parent | 88ff807ea265e293ca72204e0328f840966bbb93 [diff] |
simpleperf: check monitored targets regularly. When monitoring some threads/processes not forked by simpleperf, check if these threads/processes exist regularly. So we can stop profiling once all threads/processes exit. Also handle SIGHUP signal, so we can finish profiling properly when `adb shell simpleperf record xxx` is killed by Ctrl-C. Add corresponding tests. Bug: http://b/33558210 Test: run simpleperf_unit_test. Change-Id: Ieae4d00d099dc1c7a0c51b0610dff43981bb642e