Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plots page: add console output ('boot_console_output' messages) #156

Merged
merged 1 commit into from
Apr 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion plot_app/configured_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,15 @@ def param_changes_button_clicked():
plots.append(get_logged_messages(ulog.logged_messages, plot_width))


# perf & top output
# console messages, perf & top output
top_data = ''
perf_data = ''
console_messages = ''
if 'boot_console_output' in ulog.msg_info_multiple_dict:
console_output = ulog.msg_info_multiple_dict['boot_console_output'][0]
console_output = escape(''.join(console_output))
console_messages = '<p><pre>'+console_output+'</pre></p>'

for state in ['pre', 'post']:
if 'perf_top_'+state+'flight' in ulog.msg_info_multiple_dict:
current_top_data = ulog.msg_info_multiple_dict['perf_top_'+state+'flight'][0]
Expand All @@ -899,6 +905,8 @@ def param_changes_button_clicked():
perf_data += '<p>'+state.capitalize()+' Flight:<br/><pre>'+flight_data+'</pre></p>'

additional_data_html = ''
if len(console_messages) > 0:
additional_data_html += '<h5>Console Output</h5>'+console_messages
if len(top_data) > 0:
additional_data_html += '<h5>Processes</h5>'+top_data
if len(perf_data) > 0:
Expand Down