26968e6c48dea2eaa217991ade5a04e801f1be8f |
|
30-Jan-2017 |
Yabin Cui <yabinc@google.com> |
simpleperf: add inplace-sampler event type. Add inplace-sampler event type, so it can be used in record/list command. This cl doesn't add code for communicating with profiled process, and fake records in InplaceSamplerClient.cpp for testing purpose. Refactor runtest.py to test inplace-sampler profiling. Bug: http://b/30974760 Test: run runtest.py --inplace-sampler. Change-Id: I92d8b03583c58b3589207f5c655e03853899be3a
/system/extras/simpleperf/IOEventLoop.cpp
|
a383c11bc5d56a3d245f5a915d3a8122db46b833 |
|
19-Oct-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: add functions to IOEventLoop. Support Write Event, and add functions to disable/enable Events. Bug: http://b/30974760 Test: run simpleperf_unit_test. Change-Id: I563738196fe5849d8cc3bee120707fd14076faa8
/system/extras/simpleperf/IOEventLoop.cpp
|
825e56be3a1c5310969aaa3e10a7cd1f63455189 |
|
27-Aug-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: support hotplug events in record cmd. 1. When a cpu is down, read records from event files on that cpu, then close those event files. 2. When a cpu is up, open event files on that cpu, and create mapped buffer for those event files to dump records. 3. Instead of creating a mapped buffer for each event type on each cpu, we can just create a mapped buffer for all event types on each cpu. 4. When new event files are created, store a EventIdRecord record in perf.data to notify record_file_reader.cpp. Bug: http://b/29245608 Test: run simpleperf record cmd and make cpu offline and online. Test: run simpleperf_unit_test. Change-Id: Ib97a24b6292fa143e9b35cb105bdddf1e826d60a
/system/extras/simpleperf/IOEventLoop.cpp
|
dbbda3020c483a8da2e9ce985c1e9d8b7bcc8ec0 |
|
28-Jul-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: use libevent in record command. Support read Event in IOEventLoop, test it, and use it in record command. Format related code and clean up some comments. Bug: http://b/30405638 Change-Id: I3b07d50b0374be3f3e7ee9fa4d0c0ccc8ae21a2b Test: run simpleperf_unit_test.
/system/extras/simpleperf/IOEventLoop.cpp
|
3e4c5950f3aafb0bf66544468d98ee3ec26b705c |
|
27-Jul-2016 |
Yabin Cui <yabinc@google.com> |
simpleperf: use libevent in stat command. Wrap libevent in IOEventLoop, use IOEventLoop in stat command. Add corresponding tests. Bug: http://b/30405638 Change-Id: I78b79e0eff1365ab46dde29c2a24a2def586af79 Test: run simpleperf_unit_test.
/system/extras/simpleperf/IOEventLoop.cpp
|