def __init__(self, trace_file, stats_file, cycle, abstract):
    self.abstract = abstract
    if self.abstract:
        self.stall_bubble_color = self._ABSTRACT_STALL_BUBBLE_COLOR
        self.unified_instr_color = self._ABSTRACT_UNIFIED_INSTR_COLOR
        self.unified_fp_instr_color = self._ABSTRACT_UNIFIED_INSTR_COLOR
    else:
        self.stall_bubble_color = self._DETAILED_STALL_BUBBLE_COLOR
        self.unified_instr_color = self._DETAILED_UNIFIED_INSTR_COLOR
        self.unified_fp_instr_color = self._DETAILED_UNIFIED_INSTR_COLOR
    self.traces = self.__parse_traces(trace_file)
    self.stats = self.__parse_stats(stats_file)
    self.__get_tile_group_dim(self.traces)
    (self.start_cycle, self.end_cycle) = self.__get_timing_window(self.traces, self.stats, cycle)
def __init__(self, trace_file, stats_file, cycle, abstract):
    self.abstract = abstract
    if self.abstract:
        self.stall_bubble_color = self._ABSTRACT_STALL_BUBBLE_COLOR
        self.unified_instr_color = self._ABSTRACT_UNIFIED_INSTR_COLOR
        self.unified_fp_instr_color = self._ABSTRACT_UNIFIED_INSTR_COLOR
    else:
        self.stall_bubble_color = self._DETAILED_STALL_BUBBLE_COLOR
        self.unified_instr_color = self._DETAILED_UNIFIED_INSTR_COLOR
        self.unified_fp_instr_color = self._DETAILED_UNIFIED_INSTR_COLOR
    self.traces = self.__parse_traces(trace_file)
    self.stats = self.__parse_stats(stats_file)
    self.__get_tile_group_dim(self.traces)
    (self.start_cycle, self.end_cycle) = self.__get_timing_window(self.traces, self.stats, cycle)