Lines Matching refs:py

51     - [app_profiler py](#app_profiler-py)
53 - [binary_cache_builder.py](#binary_cache_builder-py)
54 - [run_simpleperf_on_device.py](#run_simpleperf_on_device-py)
55 - [report.py](#report-py)
56 - [report_html.py](#report_html-py)
58 - [pprof_proto_generator.py](#pprof_proto_generator-py)
59 - [report_sample.py](#report_sample-py)
60 - [simpleperf_report_lib.py](#simpleperf_report_lib-py)
103 1. Scripts used for simplifying recording, like app_profiler.py.
105 2. Scripts used for reporting, like report.py, report_html.py, inferno.
107 3. Scripts used for parsing profiling data, like simpleperf_report_lib.py.
124 [app_profiler.py](#app_profiler-py): recording profiling data.
126 [binary_cache_builder.py](#binary_cache_builder-py): building binary cache for profiling data.
128 [report.py](#report-py): reporting in stdio interface.
130 [report_html.py](#report_html-py): reporting in html interface.
136 [pprof_proto_generator.py](#pprof_proto_generator-py): converting profiling data to the format
139 [report_sample.py](#report_sample-py): converting profiling data to the format used by [FlameGraph]…
141 [simpleperf_report_lib.py](#simpleperf_report_lib-py): library for parsing profiling data.
205 We can use [app-profiler.py](#app_profiler-py) to profile Android applications.
209 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative
220 $ python report.py
233 [report.py](#report-py) reports profiling data in stdio interface. If there are a lot of unknown
238 $ python report_html.py
241 $ python report_html.py --add_source_code --source_dirs ../demo/SimpleperfExampleWithNative \
245 [report_html.py](#report_html-py) generates report in report.html, and pops up a browser tab to
254 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative \
258 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative \
262 $ python report.py -g
265 $ python report.py -g --gui
268 $ python report_html.py
277 We can use [report_html.py](#report_html-py) to show profiling results in a web browser.
278 report_html.py integrates chart statistics, sample table, flame graphs, source code annotation
282 $ python report_html.py
288 report_html.py in the "Flamegraph" tab.
301 $ python report_sample.py --symfs binary_cache >out.perf
313 $ python run_simpleperf_on_device.py list --show-features
321 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .SleepActivity \
323 $ python report_html.py --add_disassembly --add_source_code --source_dirs ../demo
331 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .MainActivity \
338 [simpleperf_report_lib.py](#simpleperf_report_lib-py). Examples are report_sample.py,
339 report_html.py.
571 (HOST)$ external/chromium-trace/systrace.py --time=10 -o new.html sched gfx view
742 # Record with --trace-offcpu using app_profiler.py.
743 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .SleepActivity \
751 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .SleepActivity
753 $ python report_html.py --add_disassembly --add_source_code --source_dirs ../demo
761 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .SleepActivity \
764 $ python report_html.py --add_disassembly --add_source_code --source_dirs ../demo
885 <a name="app_profiler-py"></a>
886 ### app_profiler.py
888 app_profiler.py is used to record profiling data for Android applications and native executables.
892 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative
897 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -nc
900 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .SleepActivity
903 $ python app_profiler.py -np surfaceflinger
906 $ python app_profiler.py -cmd \
911 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative \
915 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative \
919 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative \
932 $ python run_simpleperf_on_device.py record
938 To make it convenient to use, app_profiler.py combines these in the --profile_from_launch option.
941 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative -a .MainActivity \
945 <a name="binary_cache_builder-py"></a>
946 ### binary_cache_builder.py
951 report_html.py to generate annotated source code and disassembly.
953 By default, app_profiler.py builds the binary_cache directory after recording. But we can also
954 build binary_cache for existing profiling data files using binary_cache_builder.py. It is useful
958 binary_cache_builder.py can either pull binaries from an Android device, or find binaries in
963 $ python binary_cache_builder.py
966 $ python binary_cache_builder.py -lib ../demo
969 <a name="run_simpleperf_on_device-py"></a>
970 ### run_simpleperf_on_device.py
975 <a name="report-py"></a>
976 ### report.py
978 report.py is a wrapper of the report command on the host. It accepts all options of the report
983 $ python report.py -g
986 $ python report.py -g --gui
989 <a name="report_html-py"></a>
990 ### report_html.py
992 report_html.py generates report.html based on the profiling data. Then the report.html can show
1000 $ python report_html.py
1003 $ python report_html.py --add_source_code --source_dirs ../demo/SimpleperfExampleWithNative
1006 $ python report_html.py --add_disassembly
1012 $ python app_profiler.py -p com.example.simpleperf.simpleperfexamplewithnative
1013 $ python report_html.py --add_source_code --source_dirs ../demo --add_disassembly
1049 <a name="pprof_proto_generator-py"></a>
1050 ### pprof_proto_generator.py
1056 $ python pprof_proto_generator.py
1060 <a name="report_sample-py"></a>
1061 ### report_sample.py
1067 $ python report_sample.py --symfs binary_cache >out.perf
1073 <a name="simpleperf_report_lib-py"></a>
1074 ### simpleperf_report_lib.py
1076 simpleperf_report_lib.py is a Python library used to parse profiling data files generated by the
1084 Examples of using simpleperf_report_lib.py are in report_sample.py, report_html.py,
1085 pprof_proto_generator.py and inferno/inferno.py.
1133 2. Pass directory containing unstripped native libraries to app_profiler.py via -lib. And it will
1137 $ python app_profiler.py -lib NATIVE_LIB_DIR
1148 $ python binary_cache_builder.py -lib NATIVE_LIB_DIR,...
1156 $ python report.py --symfs binary_cache
1158 # report_html.py searches binary_cache/ automatically, so you don't need to
1160 $ python report_html.py