summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_record.cpp
AgeCommit message (Collapse)Author
2015-07-16Simpleperf: dump thread comm/mmaps for selected threads.Yabin Cui
Bug: 22511834 Change-Id: I2775b3a4cd393d75d5c6ebcd8a46e366ceb4ff76
2015-07-13Simpleperf: Support dwarf callgraph recording.Yabin Cui
1. add OS_RELEASE and ARCH feature in perf.data. ARCH feature is used when parsing recorded user registers. 2. support `--call-graph dwarf` option in record command. Bug: 22229391 Change-Id: I56dbdd101338658ce6a9b59aa8be90e712e007f5
2015-06-29Simpleperf: support build on mac.Yabin Cui
Bug: 19483574 Change-Id: I6c28541944bc0a4e6fc07d7ea5a8fb5f71890510
2015-06-24Simpleperf: support cmdline feature in perf.data.Yabin Cui
Bug: 19483574 Change-Id: I92f16d6616f274f31ea54e305fe1de10049baf02
2015-06-22Merge "Simpleperf: support child inherit option."Yabin Cui
2015-06-22Simpleperf: support child inherit option.Yabin Cui
In order to support child inherit option, also change the way to open event files for threads on all cpus in record command. Bug: 19483574 Change-Id: I0765e9ec90841c1f762490de3dd24ad37b0cc619
2015-06-22Simpleperf: better support for per thread comm.Yabin Cui
1. Move ProcessEntry to ThreadEntry, and add thread_comm in SampleEntry. 2. Add support of ForkRecord and Mmap2Record. 3. Dump ForkRecord for each thread in record command. 4. Add sort key 'tid' in report command, and change default keys. Bug: 19483574 Change-Id: Iacc690637154aeb7b6f85373730beb50d638ce86
2015-06-19Simpleperf: support event type modifier.Yabin Cui
Also fix a bug in event_attr dumping. Bug: 19483574 Change-Id: I255647d1471acab3a63c3dc787ab06b3d2bee294
2015-06-18Simpleperf: support monitoring existing processes/threads.Yabin Cui
Also change the default record freq from 1000 to 4000. Because 1000 seems to be too low. Bug: 19483574 Change-Id: I340fcb9d28a156862705e483ee340a1c824eea21
2015-06-18Simpleperf: add branch stack feature in perf.data.Yabin Cui
Also add the function to remove old perf.data. Bug: 19483574 Change-Id: I605bb637674d4674f95503a160de8c530fe87812
2015-06-18Merge "Simpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM."Yabin Cui
2015-06-17Simpleperf: add signal handler for SIGCHLD, SIGINT, SIGTERM.Yabin Cui
And rely on signal to decide when to stop in record/stat command. Bug: 19483574 Change-Id: I564cb61e74ea81cffe4de5b050482b3250ed9a06
2015-06-15Simpleperf: support callchain sampling in record command.Yabin Cui
Bug: 19483574 Change-Id: Icd8ed7c316144fc51d54f196872061533bdeef2b
2015-06-04Simpleperf: refactor command system.Yabin Cui
Register a callback function to create a new command instance instead of registering a command instance. Then we can release resources in the command destructors, and don't need xxxCommandImpl classes any more. Bug: 19483574 Change-Id: Ibb54892ec0655fd43909347afd72bb08bc8a716c
2015-06-03Simpleperf: support branch stack sampling in `simpleperf record`.Yabin Cui
This only adds support in simpleperf. Branch stack sampling still lacks kernel support on arm devices. Use perf_event.h of bionic in host build, because the perf_event.h of platform glibc is too old. Bug: 19483574 Change-Id: I9c7332c054e93e7433717dd293d3f366b1802e2d
2015-05-13Dump build_id feature in `simpleperf record`.Yabin Cui
Bug: 19483574 Change-Id: Ie2acd8a157bca9ad3c01a2e4b37e139aba89670f
2015-05-05Dump kernel/modules/thread mmap information in `simpleperf record`.Yabin Cui
Bug: 19483574 Change-Id: Ia65cb12804a6dffa440501736a6229b2f7248958
2015-05-04Implement simpleperf record/dumprecord subcommands.Yabin Cui
Bug: 19483574 Change-Id: Id879713a75c2d3a6289d8847b95ee0bb4a2cc8a0