summaryrefslogtreecommitdiff
path: root/simpleperf
AgeCommit message (Collapse)Author
2017-05-12Merge "simpleperf: make pprof_proto_generator.py work without ↵Yabin Cui
binary_cache_dir." am: de5a219880 am: 62fca012be am: eee773dcbe Change-Id: I5bd0c98adcd0af897bec95ec1f64bf48f8723d7d
2017-05-12simpleperf: make pprof_proto_generator.py work without binary_cache_dir.Yabin Cui
Bug: http://b/32834638 Test: run pprof_prot_generator.py with only perf.data. Change-Id: I686d6e968ab8703402223334e8ddb83e966a08f8
2017-05-09Merge "simpleperf: fix some format error in README.md." am: adbce4d3b7 am: ↵Yabin Cui
f3a86d7106 am: 057668237c Change-Id: Ib5a68e36f32b9b6979a83b89a3689085dac677f9
2017-05-09Merge "simpleperf: fix some format error in README.md."Treehugger Robot
2017-05-08Merge "simpleperf: fix scripts to be runnable by python3." am: f0e9a51c86 ↵Yabin Cui
am: b01e304a0c am: 151c3cda1c Change-Id: I79a8559de6b2f8ba438649f18c74d810035b7b66
2017-05-08Merge "simpleperf: fix scripts to be runnable by python3."Treehugger Robot
2017-05-08simpleperf: fix some format error in README.md.Yabin Cui
Test: none Change-Id: Ibc11990dc511fcf7eafc91becdb0383e4fb186e2
2017-05-08Merge "simpleperf: update simpleperf prebuilts to build 3984832." am: ↵Yabin Cui
e720a7afbd am: 6cc80e5a64 am: ea0570b2b4 Change-Id: Ic8979653bf50788d7a0e33dbb19a049c6cbc44f0
2017-05-08simpleperf: fix scripts to be runnable by python3.Yabin Cui
Bug: http://b/32834638 Test: run scripts with demo using both python and python3. Change-Id: I5cb7eb41bed0e2a91f4cbc97c386dd527aa3186a
2017-05-08simpleperf: update simpleperf prebuilts to build 3984832.Yabin Cui
Taken from branch aosp-master. Fix update.py for copying libwinpthread-1.dll. Bug: http://b/37788631 Test: none Change-Id: Ifb38fbdbed10941fef36c7a52cf973c67f0505cd
2017-05-05Merge "simpleperf: fix scripts on windows." am: f942f9570e am: 28d4877ea3Yabin Cui
am: 5ae7314bed Change-Id: Icb3b7a3acfc33ba2e41272bae7dc83ff43c3af31
2017-05-05Merge "simpleperf: fix tracing counters." am: 2a427fcc8b am: f9d8e454b6Yabin Cui
am: 489c9835f6 Change-Id: I460cbfe7d89071dccf220982668d09db4787d238
2017-05-05Merge "simpleperf: fix scripts on windows."Treehugger Robot
2017-05-05Merge "simpleperf: fix tracing counters."Treehugger Robot
2017-05-04simpleperf: fix tracing counters.Yabin Cui
Previously prev_counter is an uninitialized value, which makes the tracing result not correct. Test: run simpleperf/systrace.py to profile an app. Change-Id: I440771f705e22dec7a2948cb2f1164c17d41259a
2017-05-04Merge "simpleperf: add META_INFO feature section in perf.data." am: ↵Yabin Cui
3fb00aedf2 am: 9e63c11291 am: b502fcc705 Change-Id: I949981cef1b509bb7808ef848c8492bd1a942ebb
2017-05-03simpleperf: add META_INFO feature section in perf.data.Yabin Cui
META_INFO section can be used to pass some small information in perf.data. Add simpleperf_version in META_INFO section for debugging. Bug: http://b/37960318 Test: run simpleperf_unit_test. Change-Id: If17a147bbc77b5af063fbf77e02ca81430afb8a5
2017-05-03simpleperf: fix scripts on windows.Yabin Cui
1. Fix handling windows path like C:\xxx. 2. Fix adding windows executable suffix. 3. Fix one indent error in annotate.py. 4. Collect libwinpthread-1.dll in update.py. 5. simpleperf.exe on windows x86_64 doesn't work, replace it with simpleperf.exe on windows x86. Bug: http://b/37788631 Test: run demo examples on windows. Change-Id: I7195881149e70f1af9a60efc41e65fe301c62984
2017-05-03Merge "simpleperf: Update doc for Android O." am: c248f1f761 am: f13c6fb305Yabin Cui
am: 95a936e4ed Change-Id: I9adf029b3e5547e7b22f5d6b3e8f19852e7f41b8
2017-05-03Merge "simpleperf: Update doc for Android O."Treehugger Robot
2017-05-03Merge "simpleperf: add 'event_count' field in report proto." am: 7d8e85589c ↵Yabin Cui
am: e848471461 am: c6b0cf2cf3 Change-Id: I4ad8d12950cb094d448a9ea3581c32e622297546
2017-05-02simpleperf: Update doc for Android O.Yabin Cui
1. Refactor README.md: a. Add menu. b. Add `Tools in simpleperf` section. c. Use real examples in `Android application profiling`, add checks for how to prepare the application. d. Link to examples workable on Android O. 2. Use `ps -e` instead of `ps` for Android O in app_profiler.py. 3. Remove a failed assert in annotate.py. 4. Upload demo projects. Bug: http://b/35157971 Test: follow examples on linux and mac. Change-Id: Iab115bdca3d5abad56fcdc048ccc75f867f5bd6b
2017-05-02simpleperf: add 'event_count' field in report proto.Yabin Cui
Bug: http://b/37294023 Test: run simpleperf_unit_test. Change-Id: Ib16eec55512769a9a241c8ff054179d450488142
2017-04-29Merge "simpleperf: fix unknown binary in samples." am: 8bc6d740bd am: b06d9a0116Yabin Cui
am: 2abc0dafae Change-Id: I2190ad7e8b9c61388b6312a5df306557371dff89
2017-04-28simpleperf: fix unknown binary in samples.Yabin Cui
1. Wrong ip addresses in callchain can map to unknown binary. They should be omitted. 2. When unknown binary is really hitted in samples, which is unlikely to happen, make sure report-sample cmd will not skip the file id of unknown binary. 3. Add corresponding test. Bug: http://b/37783312 Test: run simpleperf_unit_test. Change-Id: Ifb5b59401bce9c8f81042015e73f190acd43ce31
2017-04-27Merge "Fix wrong usage of * in find command" am: b3502943dc am: 7323eeb32fPo Hu
am: de7a4558c1 Change-Id: Ica6908ab76690c138f945363ee2c1978c268d327
2017-04-27Fix wrong usage of * in find commandPo Hu
When KATI_FIND_EMULATOR is disabled, the following warning message will appear: find: paths must precede expression: build_id.h Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] Because the * in 'find some/path -name *' command is wrongly expanded by shell. We should change * to "*". Change-Id: Ib051f47bb9335930944b8f63fd0fb54fbb867f31 Test: make KATI_EMULATE_FIND=false
2017-04-20Merge "simpleperf: update simpleperf prebuilts to build 3929284." am: ↵Yabin Cui
e779206ade am: 05933b0f0d am: 33d4a83f97 Change-Id: I8b88ffcd9dac924ebb393ca3905ecf55971fb713
2017-04-20simpleperf: update simpleperf prebuilts to build 3929284.Yabin Cui
Taken from branch aosp-master. Test: None. Change-Id: I2da2d392cff6bcb6a65de203a73707fede5220de
2017-04-19Merge "simpleperf: add --brief-callgraph option for report cmd." am: ↵Yabin Cui
e3d4de1a61 am: 77d41040fb am: ef4a69aac8 Change-Id: Ifd75bddcaeffa0006f68971d3e8c6354026582fe
2017-04-19simpleperf: add --brief-callgraph option for report cmd.Yabin Cui
Remove duplicated callgraphs (which appears as a sub graph in another place) in --brief-callgraph mode. Accept brief callgraph in report.py. Add unit test for --brief-callgraph option. Bug: http://b/37444055 Test: run simpleperf_unit_test. Test: manually run report.py. Change-Id: I41977762552ec66807f394558352da6cbefaec2e
2017-04-19Merge "simpleperf: add --start_profiling_fd option for record cmd." am: ↵Yabin Cui
faa89a17fd am: ad46983ee8 am: e0e4e2c085 Change-Id: I0f2f8d07c6fce17e52e744c2cc90edcfc5fb2e95
2017-04-18simpleperf: add --start_profiling_fd option for record cmd.Yabin Cui
Bug: http://b/37480722 Test: run simpleperf_unit_test. Change-Id: Ie6a742b986d79c70d3b6ab8e470eae42af34c9ef
2017-04-18Merge "simpleperf: add warning for `--call-graph fp` option on arm." am: ↵Yabin Cui
05af0c8c65 am: e6a0a81106 am: 13fe8a113f Change-Id: Ic12b48f48b00319f47c5b2439e305439fe0ffe5a
2017-04-18simpleperf: add warning for `--call-graph fp` option on arm.Yabin Cui
Bug: http://b/37443666 Test: run simpleperf_unit_test. Change-Id: Ie376babab1aa5ec887c8d640266fbce9a0928290
2017-04-13Merge "simpleperf: fix pprof proto generator." am: d2b7f6afe5 am: d4f4c4518eYabin Cui
am: 9db43ebe0e Change-Id: I10fa5f40ccbdee997aa43b318c49e7c3c0e19f55
2017-04-13simpleperf: fix pprof proto generator.Yabin Cui
Bug: http://b/36988814 Test: run pprof_proto_generator.py and no function_id == 0. Change-Id: I42bead12818e2d9396c4e52afc2dca84558d7731
2017-04-04Merge "Do not build simpleperf_unit_test and simpleperf_cpu_hotplug_test for ↵Dan Shi
host test cases" am: f0deb9a4dd am: c99398e65d am: 5aa626a936 Change-Id: Ibe459b552845ae784e1b72e45a5805c556d49eed
2017-04-03Do not build simpleperf_unit_test and simpleperf_cpu_hotplug_test for host ↵Dan Shi
test cases These two tests may not support host side test yet, don't output the test binary to testcases folder for now. Test: make -j simpleperf_unit_test Bug: 36820939 Change-Id: Ibffdf6a842e1cfabe8aa38dd75a79416a8bd0b23
2017-03-31Merge "Add test config to simpleperf_unit_test and simpleperf_unit_test" am: ↵Dan Shi
4f6fd05205 am: c76a993f79 am: bf837ea212 Change-Id: I201f349f32fd18b5a94c9e907115d9f1fd37819d
2017-03-28Add test config to simpleperf_unit_test and simpleperf_unit_testDan Shi
Design doc: Generalized Suites & the Unification of APCT & CTS Workflows Design/Roadmap https://docs.google.com/document/d/1eabK3srlBLouMiBMrNP3xJPiRRdcoCquNxC8gBWPvx8/edit#heading=h.78vup5eivwzo Details about test configs changes are tracked in doc https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit# Bug: 35882476 Test: local test Change-Id: I80a567fcb44ea00d38243fb2bdeac4798024a201
2017-03-22Merge "simpleperf: update simpleperf prebuilts to build 3839284." am: ↵Yabin Cui
91ddc60836 am: 3c996df3b9 am: 159bf30d33 Change-Id: I551a8d13c655858487dbdbbc0889897a2950c3f1
2017-03-22simpleperf: update simpleperf prebuilts to build 3839284.Yabin Cui
Taken from branch aosp-master. And remove update.py from the distribution. Bug: http://b/35726123 Test: run pprof_proto_generator.py. Change-Id: I9b8e0c2f804c5e61ef1c9b1eb1aa626d0d849f64
2017-03-22Merge "simpleperf: add new scripts in sdk artifacts." am: 955ffc9f09 am: ↵Yabin Cui
d4d6e0c95d am: 7a3f05a456 Change-Id: I6895f3f2e61f5922240a039662a8ea3534cdb447
2017-03-21simpleperf: add new scripts in sdk artifacts.Yabin Cui
Bug: http://b/35726123 Test: run `make sdk -j30`. Change-Id: I1515afc0d69dbbcc3756b7d93b738039a1174571
2017-03-21Merge "simpleperf: add script to generate proto data used by pprof." am: ↵Yabin Cui
94892d4ead am: 50c4ddad23 am: 3fe89fa08d Change-Id: If852bc8fac920ff9b1b87fefeb7909589a0ee5dd
2017-03-17simpleperf: add script to generate proto data used by pprof.Yabin Cui
Also change Addr2Line to support inline functions. Bug: http://b/35726123 Test: run gen_pprof_proto.py manually. Change-Id: Ia2f84ac142e7075ea902f3456235db24567e4fcd
2017-03-07Merge "simpleperf: adjust sample_freq based on max_sample_rate file." am: ↵Yabin Cui
8e9eabe7f4 am: d2b9b31a63 am: 1085738fdd Change-Id: Ia910018098adaf171beca32002bc0a546d35daa1
2017-03-06simpleperf: adjust sample_freq based on max_sample_rate file.Yabin Cui
Starting from kernel 4.4, perf_event_max_sample_rate can be adjusted dynamically by the kernel to limit the cpu percentage used to dump records. Bug: http://b/35554543 Test: echo 100 >/proc/sys/kernel/perf_event_max_sample_rate && Test: run CtsSimpleperfTestCases Change-Id: I75f6cbc124c545d05fd56b07c6a868b7ca15cd8a
2017-02-25Merge "simpleperf: fix a small error." am: 3c7ae46f92 am: 9898014244Yabin Cui
am: 64f5ba0557 Change-Id: Ic1e18a5d27fd3542e1545135dbf4a974c4a45491