diff options
author | Yabin Cui <yabinc@google.com> | 2021-12-16 23:47:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-12-16 23:47:46 +0000 |
commit | ebffa5ea44991dc85870a2bb7d1e49d5ccd8e54d (patch) | |
tree | 082526122d3fb53647d0e66f46d2107b913b1475 /simpleperf/doc | |
parent | 6f80f3fa7319d23aa91345eb84a4527d5e8e4715 (diff) | |
parent | 5070c8183925f97f0bd2ea81474c59a05e7fc92b (diff) | |
download | extras-ebffa5ea44991dc85870a2bb7d1e49d5ccd8e54d.tar.gz |
Merge "simpleperf: add doc for --proguard-mapping-file."
Diffstat (limited to 'simpleperf/doc')
-rw-r--r-- | simpleperf/doc/android_application_profiling.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/simpleperf/doc/android_application_profiling.md b/simpleperf/doc/android_application_profiling.md index 73486dd9..65fae751 100644 --- a/simpleperf/doc/android_application_profiling.md +++ b/simpleperf/doc/android_application_profiling.md @@ -239,6 +239,16 @@ $ simpleperf report-sample --protobuf --show-callchain -i perf.data -o perf.trac # Then open perf.trace in Android Studio to show it. ``` +## Deobfuscate Java symbols + +Java symbols may be obfuscated by ProGuard. To restore the original symbols in a report, we can +pass a Proguard mapping file to the report scripts or report-sample command via +`--proguard-mapping-file`. + +```sh +$ ./report_html.py --proguard-mapping-file proguard_mapping_file.txt +``` + ## Record both on CPU time and off CPU time We can [record both on CPU time and off CPU time](executable_commands_reference.md#record-both-on-cpu-time-and-off-cpu-time). |