• Home
  • History
  • Annotate
  • only in /system/extras/simpleperf/demo/
History log of /system/extras/simpleperf/demo/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b8439265477bac5e32131a757e90abf510a77bf9 13-Jul-2017 Yabin Cui <yabinc@google.com> simpleperf: replace config file with cmdline options.

1. For binary_cache_builder.py, annoate.py and pprof_proto_generator.py,
there are only a few options, use a config file seems overkill, so
replace them with cmdline options.

2. Add cmdline interface for app_profiler.py. It is to simplify usage,
and can be called from tests (will be added).

3. Simplify the way to find tools (including adb,readelf,addr2line),
try to find them in default install location of sdk and ndk. And output
error/warning msg if not found.

4. Raise exception in python are not always helpful for users to find
problems, because the error msg is hidden by exception stack dump. So
replace some log_fatal() with log_exit().

5. Change README.md accordingly.

Bug: http://b/32834638
Test: run scripts manually.

Change-Id: Ic60e496edbe748b801d35144da29f40c3db3e250
EADME.md
6cc52fdf2d2c25f4583eb3b0159f71005966dc79 27-Jun-2017 Yabin Cui <yabinc@google.com> simpleperf: add demo for kotlin.

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
EADME.md
impleperfExampleOfKotlin/.gitignore
impleperfExampleOfKotlin/.idea/gradle.xml
impleperfExampleOfKotlin/.idea/misc.xml
impleperfExampleOfKotlin/.idea/modules.xml
impleperfExampleOfKotlin/.idea/runConfigurations.xml
impleperfExampleOfKotlin/app/.gitignore
impleperfExampleOfKotlin/app/build.gradle
impleperfExampleOfKotlin/app/profiling.gradle
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/arm64-v8a/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/armeabi-v7a/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/armeabi/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/mips/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/mips64/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/x86/wrap.sh
impleperfExampleOfKotlin/app/profiling_apk_add_dir/lib/x86_64/wrap.sh
impleperfExampleOfKotlin/app/proguard-rules.pro
impleperfExampleOfKotlin/app/src/androidTest/java/com/example/simpleperf/simpleperfexampleofkotlin/ExampleInstrumentedTest.kt
impleperfExampleOfKotlin/app/src/main/AndroidManifest.xml
impleperfExampleOfKotlin/app/src/main/java/com/example/simpleperf/simpleperfexampleofkotlin/MainActivity.kt
impleperfExampleOfKotlin/app/src/main/res/layout/activity_main.xml
impleperfExampleOfKotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
impleperfExampleOfKotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
impleperfExampleOfKotlin/app/src/main/res/values/colors.xml
impleperfExampleOfKotlin/app/src/main/res/values/strings.xml
impleperfExampleOfKotlin/app/src/main/res/values/styles.xml
impleperfExampleOfKotlin/app/src/test/java/com/example/simpleperf/simpleperfexampleofkotlin/ExampleUnitTest.kt
impleperfExampleOfKotlin/build.gradle
impleperfExampleOfKotlin/gradle.properties
impleperfExampleOfKotlin/gradle/wrapper/gradle-wrapper.jar
impleperfExampleOfKotlin/gradle/wrapper/gradle-wrapper.properties
impleperfExampleOfKotlin/gradlew
impleperfExampleOfKotlin/gradlew.bat
impleperfExampleOfKotlin/settings.gradle
dcb2a3e580f155bb28621c4cbad019d104e8f300 19-May-2017 Yabin Cui <yabinc@google.com> simpleperf: enable two options by default.

Enable dumping symbols in record cmd by default,
and change --dump-symbols option into --no-dump-symbols option.
Show brief call graph in report cmd by default,
and change --brief-callgraph option into --full-callgraph option.
Make the change because these two behaviors are always recommended.

Bug: None.
Test: run simpleperf_unit_test.
Change-Id: Icff6a843a7f46c56313500f4da119aa5118a57e5
EADME.md
adbce4d3b7eb6f4c7c78084feefc208fc8a768fe 09-May-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "simpleperf: fix some format error in README.md."
1603e8603612e6c1fcdf4b30a7fbd2b06e224198 08-May-2017 Yabin Cui <yabinc@google.com> simpleperf: fix some format error in README.md.

Test: none
Change-Id: Ibc11990dc511fcf7eafc91becdb0383e4fb186e2
EADME.md
98058a897528620916427e96485c58b8a534c6b3 08-May-2017 Yabin Cui <yabinc@google.com> simpleperf: fix scripts to be runnable by python3.

Bug: http://b/32834638
Test: run scripts with demo using both python and python3.
Change-Id: I5cb7eb41bed0e2a91f4cbc97c386dd527aa3186a
impleperfExamplePureJava/.idea/misc.xml
impleperfExampleWithNative/.idea/misc.xml
cbddd3829b6cf125340d1795f04931a5c8ff83ef 03-May-2017 Yabin Cui <yabinc@google.com> simpleperf: fix scripts on windows.

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
EADME.md
06956f3dd31a7e71bac119982a9a7db31259050e 28-Apr-2017 Yabin Cui <yabinc@google.com> simpleperf: Update doc for Android O.

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
EADME.md
impleperfExamplePureJava/.gitignore
impleperfExamplePureJava/.idea/compiler.xml
impleperfExamplePureJava/.idea/copyright/profiles_settings.xml
impleperfExamplePureJava/.idea/gradle.xml
impleperfExamplePureJava/.idea/misc.xml
impleperfExamplePureJava/.idea/modules.xml
impleperfExamplePureJava/.idea/runConfigurations.xml
impleperfExamplePureJava/app/.gitignore
impleperfExamplePureJava/app/build.gradle
impleperfExamplePureJava/app/profiling.gradle
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/arm64-v8a/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/armeabi-v7a/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/armeabi/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/mips/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/mips64/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/x86/wrap.sh
impleperfExamplePureJava/app/profiling_apk_add_dir/lib/x86_64/wrap.sh
impleperfExamplePureJava/app/proguard-rules.pro
impleperfExamplePureJava/app/src/androidTest/java/com/example/simpleperf/simpleperfexamplepurejava/ExampleInstrumentedTest.java
impleperfExamplePureJava/app/src/main/AndroidManifest.xml
impleperfExamplePureJava/app/src/main/java/com/example/simpleperf/simpleperfexamplepurejava/MainActivity.java
impleperfExamplePureJava/app/src/main/res/layout/activity_main.xml
impleperfExamplePureJava/app/src/main/res/mipmap-hdpi/ic_launcher.png
impleperfExamplePureJava/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
impleperfExamplePureJava/app/src/main/res/mipmap-mdpi/ic_launcher.png
impleperfExamplePureJava/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
impleperfExamplePureJava/app/src/main/res/mipmap-xhdpi/ic_launcher.png
impleperfExamplePureJava/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
impleperfExamplePureJava/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
impleperfExamplePureJava/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
impleperfExamplePureJava/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
impleperfExamplePureJava/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
impleperfExamplePureJava/app/src/main/res/values/colors.xml
impleperfExamplePureJava/app/src/main/res/values/strings.xml
impleperfExamplePureJava/app/src/main/res/values/styles.xml
impleperfExamplePureJava/app/src/test/java/com/example/simpleperf/simpleperfexamplepurejava/ExampleUnitTest.java
impleperfExamplePureJava/build.gradle
impleperfExamplePureJava/gradle.properties
impleperfExamplePureJava/gradle/wrapper/gradle-wrapper.jar
impleperfExamplePureJava/gradle/wrapper/gradle-wrapper.properties
impleperfExamplePureJava/gradlew
impleperfExamplePureJava/gradlew.bat
impleperfExamplePureJava/settings.gradle
impleperfExampleWithNative/.gitignore
impleperfExampleWithNative/.idea/compiler.xml
impleperfExampleWithNative/.idea/copyright/profiles_settings.xml
impleperfExampleWithNative/.idea/gradle.xml
impleperfExampleWithNative/.idea/misc.xml
impleperfExampleWithNative/.idea/modules.xml
impleperfExampleWithNative/.idea/runConfigurations.xml
impleperfExampleWithNative/app/.gitignore
impleperfExampleWithNative/app/CMakeLists.txt
impleperfExampleWithNative/app/build.gradle
impleperfExampleWithNative/app/profiling.gradle
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/arm64-v8a/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/armeabi-v7a/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/armeabi/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/mips/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/mips64/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/x86/wrap.sh
impleperfExampleWithNative/app/profiling_apk_add_dir/lib/x86_64/wrap.sh
impleperfExampleWithNative/app/proguard-rules.pro
impleperfExampleWithNative/app/src/androidTest/java/com/example/simpleperf/simpleperfexamplewithnative/ExampleInstrumentedTest.java
impleperfExampleWithNative/app/src/main/AndroidManifest.xml
impleperfExampleWithNative/app/src/main/cpp/native-lib.cpp
impleperfExampleWithNative/app/src/main/java/com/example/simpleperf/simpleperfexamplewithnative/MainActivity.java
impleperfExampleWithNative/app/src/main/res/layout/activity_main.xml
impleperfExampleWithNative/app/src/main/res/mipmap-hdpi/ic_launcher.png
impleperfExampleWithNative/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
impleperfExampleWithNative/app/src/main/res/mipmap-mdpi/ic_launcher.png
impleperfExampleWithNative/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
impleperfExampleWithNative/app/src/main/res/mipmap-xhdpi/ic_launcher.png
impleperfExampleWithNative/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
impleperfExampleWithNative/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
impleperfExampleWithNative/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
impleperfExampleWithNative/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
impleperfExampleWithNative/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
impleperfExampleWithNative/app/src/main/res/values/colors.xml
impleperfExampleWithNative/app/src/main/res/values/strings.xml
impleperfExampleWithNative/app/src/main/res/values/styles.xml
impleperfExampleWithNative/app/src/test/java/com/example/simpleperf/simpleperfexamplewithnative/ExampleUnitTest.java
impleperfExampleWithNative/build.gradle
impleperfExampleWithNative/gradle.properties
impleperfExampleWithNative/gradle/wrapper/gradle-wrapper.jar
impleperfExampleWithNative/gradle/wrapper/gradle-wrapper.properties
impleperfExampleWithNative/gradlew
impleperfExampleWithNative/gradlew.bat
impleperfExampleWithNative/settings.gradle