Home | History | Annotate | Download | only in site_utils

Lines Matching refs:t_end

63 def lock_history_to_intervals(initial_lock_val, t_start, t_end, lock_history):
68 @param t_end: end of the time period we are interested in.
88 locked_intervals.append((t_prev, t_end))
121 for records between t_start and t_end. To get the status from t_start to
127 t_end: end of time period we are interested in.
133 found in [t_start, t_end]
137 t_end = input['t_end']
155 t_end_epoch = time_utils.to_epoch_time(t_end)
178 locked_intervals = lock_history_to_intervals(t_lock_val, t, t_end,
199 t_prev, t_end, status_prev, metadata_prev, locked_intervals))
235 def get_stats_string_aggregate(labels, t_start, t_end, aggregated_stats,
242 @param t_end: end of time period we are interested in.
249 time_utils.epoch_time_to_date_string(t_end))
252 multiplication_factor = 100.0 / ((t_end - t_start) * num_hosts)
262 def get_overall_report(label, t_start, t_end, intervals_of_statuses_list):
268 @param t_end: end of time period we are interested in.
276 label, t_start, t_end, stats_all, num_hosts)
279 def get_intervals_for_host(t_start, t_end, hostname):
287 @param t_end: end of time period we are interested in.
294 t_end_epoch = time_utils.to_epoch_time(t_end)
305 def get_intervals_for_hosts(t_start, t_end, hosts=None, board=None, pool=None):
319 @param t_end: end of time period we are interested in.
328 hosts_intervals[host] = get_intervals_for_host(t_start, t_end, host)
340 t_end_epoch = time_utils.to_epoch_time(t_end)
357 intervals = get_intervals_for_host(t_start, t_end, host)
362 def get_report(t_start, t_end, hosts=None, board=None, pool=None,
369 @param t_end: end of time period we are interested in.
382 hosts_intervals = get_intervals_for_hosts(t_start, t_end, hosts, board,
389 't_end': t_end,
399 t_start, t_end, total_times, intervals[0], hostname,
405 def get_report_for_host(t_start, t_end, hostname, print_each_interval):
409 @param t_end: end of time period we are interested in.
416 intervals = get_intervals_for_host(t_start, t_end, hostname)
422 't_end': t_end,
427 t_start, t_end, total_times, intervals_of_statuses,
432 def get_stats_string(t_start, t_end, total_times, intervals_of_statuses,
436 @param t_end: end of time period we are interested in.
445 delta = t_end - t_start
448 time_utils.epoch_time_to_date_string(t_end))
468 def calculate_status_times(t_start, t_end, int_status, metadata,
479 @param t_end: end time
480 @param int_status: status of [t_start, t_end] if not locked
501 statuses[(t_start, t_end)] = status_info
504 if prev_interval_end >= t_end:
506 if lock_start > t_end:
509 # Timeline of status change: t_start t_end
514 # prev_interval_end t_end
517 elif lock_end <= t_end and lock_start >= prev_interval_end:
519 # prev_interval_end t_end
527 # prev_interval_end t_end
531 statuses[(prev_interval_end, min(lock_end, t_end))] = locked_info
533 elif lock_start < t_end and lock_end > t_end:
535 # prev_interval_end t_end
539 statuses[(prev_interval_end, t_end)] = status_info
540 statuses[(lock_start, t_end)] = locked_info
541 prev_interval_end = t_end
543 # lock_start > t_end, which means the lock doesn't apply.
544 if t_end > prev_interval_end:
546 statuses[(prev_interval_end, t_end)] = status_info
576 key as (t_start, t_end) and value as (status, metadata)
580 t_end is the end of the interval where the DUT has that