Merge "perfboot: significant figures + units for summary" am: fe8dec0447 am: b76d1b8873 am: 5b175d1261

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1386892

Change-Id: I7ed82e502a94444d291107eedb0a56e1a0d0fb65
This commit is contained in:
Steven Moreland 2020-08-04 19:06:37 +00:00 committed by Automerger Merge Worker
commit bd246dfd1e

View file

@ -349,9 +349,9 @@ def print_summary(record_list, end_tag):
# Filter out invalid data.
end_times = [get_last_value(record, end_tag) for record in record_list
if get_last_value(record, end_tag) != 0]
print 'mean: ', mean(end_times)
print 'median:', median(end_times)
print 'standard deviation:', stddev(end_times)
print 'mean:', int(round(mean(end_times))), 'ms'
print 'median:', int(round(median(end_times))), 'ms'
print 'standard deviation:', int(round(stddev(end_times))), 'ms'
def do_iteration(device, interval_adjuster, event_tags_re, end_tag):