Description
Description
Use kill -2 send SIGINT to to stop simpleperf monitoring and get the record data file. Then try to use report_sample.py -i $inputfile --show_tracing_data to parse the record data always get following error:
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\report_sample.py", line 107, in
main()
~~~~^^
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\report_sample.py", line 97, in main
report_sample(
~~~~~~~~~~~~~^
record_file=args.record_file,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
header=args.header,
^^^^^^^^^^^^^^^^^^^
report_lib_options=args.report_lib_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\report_sample.py", line 72, in report_sample
data = lib.GetTracingDataOfCurrentSample()
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\simpleperf_report_lib.py", line 502, in GetTracingDataOfCurrentSample
result[field.name] = field.parse_value(data)
~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\simpleperf_report_lib.py", line 116, in parse_value
while length < max_len and bytes_to_str(data[offset + length]) != '\x00':
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Code\CamPerfTool\CameraDataGrab\bat\simpleperf\simpleperf_utils.py", line 69, in bytes_to_str
return bytes_value.decode('utf-8')
~~~~~~~~~~~~~~~~~~^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 0: invalid start byte
But the record data can be parsed success while using report_html.py or stackcollapse.py.
Is there any bug while use kill -2 to stop recording ?
I am using a supported NDK
- I have checked and the NDK I'm using is currently supported
Affected versions
r28