diff options
Diffstat (limited to 'simpleperf/scripts/purgatorio/purgatorio.py')
-rwxr-xr-x | simpleperf/scripts/purgatorio/purgatorio.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/simpleperf/scripts/purgatorio/purgatorio.py b/simpleperf/scripts/purgatorio/purgatorio.py index 4e2560a2..0f072547 100755 --- a/simpleperf/scripts/purgatorio/purgatorio.py +++ b/simpleperf/scripts/purgatorio/purgatorio.py @@ -43,7 +43,6 @@ from functools import cmp_to_key simpleperf_path = Path(__file__).absolute().parents[1] sys.path.insert(0, str(simpleperf_path)) import simpleperf_report_lib as sp -from simpleperf_utils import BaseArgumentParser # fmt: on @@ -170,7 +169,11 @@ def generate_datasource(args): if args.ksyms: lib.SetKallsymsFile(args.ksyms) - lib.SetReportOptions(args.report_lib_options) + if not args.not_art: + lib.ShowArtFrames(True) + + for file_path in args.proguard_mapping_file or []: + lib.AddProguardMappingFile(file_path) product = lib.MetaInfo().get('product_props') @@ -265,19 +268,21 @@ def generate_datasource(args): def main(): - parser = BaseArgumentParser() + parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('-i', '--input_file', type=str, required=True, help='input file') parser.add_argument('--title', '-t', type=str, help='document title') parser.add_argument('--ksyms', '-k', type=str, help='path to kernel symbols (kallsyms)') parser.add_argument('--usyms', '-u', type=str, help='path to tree with user space symbols') + parser.add_argument('--not_art', '-a', action='store_true', help='Don\'t show ART symbols') parser.add_argument('--output', '-o', type=str, help='output file') parser.add_argument('--dont_open', '-d', action='store_true', help='Don\'t open output file') parser.add_argument('--include_dso_names', '-n', action='store_true', help='Include dso names in backtraces') parser.add_argument('--include_symbols_addr', '-s', action='store_true', help='Include addresses of symbols in backtraces') - parser.add_report_lib_options(default_show_art_frames=True) - + parser.add_argument( + '--proguard-mapping-file', nargs='+', + help='Add proguard mapping file to de-obfuscate symbols') args = parser.parse_args() # TODO test hierarchical ranges too |