summaryrefslogtreecommitdiff
path: root/simpleperf/demo/SimpleperfExampleOfKotlin
AgeCommit message (Collapse)Author
2020-03-24Add an exported flag in manifestAshwini Oruganti
With b/150232615, we will need an explicit value set for the exported flag when intent filters are present, as the default behavior is changing for future versions. This change adds the value reflecting the previous default to the manifest. These changes were made using an automated tool, the xml file may be reformatted slightly creating a larger diff. The only "real" change is the addition of "android:exported" to activities, services, and receivers that have one or more intent-filters. Bug: 150232615 Test: TH Exempt-From-Owner-Approval: mechanical refactoring Change-Id: I273c2fa10b59183a0e3e540fbc2bb6e71fbf28a8
2018-12-20Migrate system/extras to androidx.testBrett Chabot
See go/jetpack-test-android-migration Test: compile Change-Id: I0549a1fc80de5c66b00bdf685c536f01e7c3ae65
2018-12-13simpleperf: update build.gradle in demo apps.Yabin Cui
Bug: none Test: build apps. Change-Id: I8b41e70b17f462f2272ed8eb32c8ca087243cc3e
2018-04-10simpleperf: Improve the way downloading native libs on device.Yabin Cui
Apks are usually built with stripped native libs, so app_profiler.py supports downloading native libs on device, and pass the native lib directory to simpleperf via --symfs option. However, it has below problems: 1. It needs to download native libs each time profiling. 2. It needs to wait until the app starts and read the /proc/pid/maps to know which native libs are needed. This patch solves the problems as below: 1. When app_profiler.py downloads native libs, it will write a build_id_list file in the native lib directory, which is a map from build_id to debug library path. 2. Simpleperf searchs build_id_list in the native lib directory, and uses build_id to find the debug files it needs. 3. Before downloading libs, app_profiler.py checks build_id_list to find libs available on device, thus avoids downloading libs more than once. Add tests in simpleperf_unit_test and test.py. Update demos to Android Studio 3.2. In profiling.gradle, remove the logic preventing stripping native libs in apk to test this patch. Another reason to remove it is because I found it affects release builds. Bug: http://b/69165587 Test: run simpleperf_unit_test && python test.py. Change-Id: I8ecf7ba2c0f58c131c261c1b4546f4916aea1f82
2017-10-27simpleperf: update demo.Yabin Cui
1. Only add wrap.sh in app-profiling.apk, not affecting other build types. 2. Rebuild the apks by Android studio 3.0. Bug: None. Test: run test.py. Change-Id: I8a1712143d60acddf696eab3d6058fdd834cc5b4
2017-07-28simpleperf add more script tests.Yabin Cui
Add tests for Trace offcpu. Add test for jni call. Build testdata when running test.py. Bug: http://b/63006886 Test: run test.py. Change-Id: I5a87b8d2a8f59ead858c1b78a78c7e78847854f4
2017-06-27simpleperf: add demo for kotlin.Yabin Cui
And fix annotate.py to include kotlin source code. Bug: http://b/32834638 Test: profile the app on bullhead and marlin using scripts manually. Change-Id: Ic812cd2f8db7d047ceac58e3f5ae6a3f19e1879f