Lines Matching full:events
97 for key, pattern in cfg['events'].iteritems()}
126 events = shutdown_event_all.get(k)
127 if not events:
128 events = []
129 shutdown_event_all[k] = events
130 events.append(v)
133 events = shutdown_timing_event_all.get(k)
134 if not events:
135 events = []
136 shutdown_timing_event_all[k] = events
137 events.append(v)
174 print "\nshutdown events after {0} runs".format(args.iterate)
182 print "\nshutdown timing events after {0} runs".format(args.iterate)
296 print "\nshutdown events: time"
299 print "\nshutdown timing events: time"
335 events = {}
378 events[k] = v
381 events[k] = dmesg_event_time[k]
389 while diff[0] < events[k] and len(diffs) > 1:
393 events[k] = events[k] - diff[1]
394 if events[k] < 0.0:
395 if events[k] < -0.1: # maybe previous one is better fit
396 events[k] = events[k] + diff[1] - diff_prev[1]
398 events[k] = 0.0
417 for item in sorted(events.items(), key=operator.itemgetter(1)):
424 if events.get("BootComplete") and boottime_events.get("bootloader"):
425 total = events["BootComplete"] + boottime_events["bootloader"]
431 if events.get("LauncherStart") and boottime_events.get("bootloader"):
432 total = events["LauncherStart"] + boottime_events["bootloader"]
444 if events[LOGCAT_BOOT_COMPLETE] > error_time and not args.ignore:
445 capture_bugreport("bootuptoolong", events[LOGCAT_BOOT_COMPLETE])
452 capture_bugreport(k + "-" + str(logcat_value_measured), events[LOGCAT_BOOT_COMPLETE])
455 capture_bugreport(k + "-" + str(kernel_value_measured), events[LOGCAT_BOOT_COMPLETE])
458 capture_bugreport(k + "-" + str(data_from_data_points['value']), events[LOGCAT_BOOT_COMPLETE])
464 fs_stat_pattern = cfg["events"]["FsStat"]
473 capture_bugreport("fs_stat_" + fs_stat, events[LOGCAT_BOOT_COMPLETE])
539 def handle_zygote_event(zygote_pids, events, event, line): argument
555 for k, l in events.iteritems():
559 del events[item[0]]
564 events[item[0] + "-secondary"] = item[1]
569 events[event] = line
571 def update_name_if_already_exist(events, name): argument
572 existing_event = events.get(name)
578 existing_event = events.get(new_name)
583 events = collections.OrderedDict()
606 events[event] = time
619 start_time = events.get(pair_event)
636 return events, timing_events
640 events = collections.OrderedDict()
670 events[event] = line
673 handle_zygote_event(zygote_pids, events, event, line)
675 new_event = update_name_if_already_exist(events, event)
676 events[new_event] = line
691 return events, timing_events
695 events = {}
706 events[match.group(1)] = float(match.group(2)) / 1000.0 #ms to s
708 events[match.group(1)] = float(match.group(2)) / 1000000000.0 #ns to s
721 for item in sorted(events.items(), key=operator.itemgetter(1)):
726 def get_boot_event(line, events): argument
727 for event_key, event_pattern in events.iteritems():
739 def extract_time(events, pattern, date_transform_function): argument
741 for event, data in events.iteritems():