Default state_output_profile to True everywhere, closes #35166

This commit is contained in:
Ivan Babrou 2016-08-08 13:38:39 +01:00
parent 65fba5b4d7
commit 6cdee21036
No known key found for this signature in database
GPG key ID: DBF6C142408CB4F0

View file

@ -423,7 +423,7 @@ def _format_host(host, data):
line_max_len - 7)
hstrs.append(colorfmt.format(colors['CYAN'], totals, colors))
if __opts__.get('state_output_profile', False):
if __opts__.get('state_output_profile', True):
sum_duration = sum(rdurations)
duration_unit = 'ms'
# convert to seconds if duration is 1000ms or more
@ -491,14 +491,14 @@ def _format_terse(tcolor, comps, ret, colors, tabular):
result = u'Differs'
if tabular is True:
fmt_string = u'{0}'
if __opts__.get('state_output_profile', False):
if __opts__.get('state_output_profile', True):
fmt_string += u'{6[start_time]!s} [{6[duration]!s} ms] '
fmt_string += u'{2:>10}.{3:<10} {4:7} Name: {1}{5}'
elif isinstance(tabular, str):
fmt_string = tabular
else:
fmt_string = u' {0} Name: {1} - Function: {2}.{3} - Result: {4}'
if __opts__.get('state_output_profile', False):
if __opts__.get('state_output_profile', True):
fmt_string += u' Started: - {6[start_time]!s} Duration: {6[duration]!s} ms'
fmt_string += u'{5}'