def start_parsing(self, get_partial_text): # we build our data into python data formats, who are resizeable # once everything is parsed, we will transform it into numpy array, for fast access self.tmp_c_states = [] self.tmp_p_states = [] self.tmp_process = {} self.timestamps = [] self.linenumbers = [] self.cur_process_by_pid = {} self.wake_events = [] self.cur_process = [None] * 20 self.last_irq = {} self.last_spi = [] self.missed_power_end = 0 self.get_partial_text = get_partial_text self.methods = {} import plugin colors.parse_colors(plugin.get_plugins_additional_colors()) plugin.get_plugins_methods(self.methods) self.process_types = { "function": (tcProcess, plugin.MISC_TRACES_CLASS), "event": (tcProcess, plugin.MISC_TRACES_CLASS) } self.process_types.update( plugin.get_plugins_additional_process_types())
def start_parsing(self, get_partial_text): # we build our data into python data formats, who are resizeable # once everything is parsed, we will transform it into numpy array, for fast access self.tmp_c_states = [] self.tmp_p_states = [] self.tmp_process = {} self.timestamps = [] self.linenumbers = [] self.cur_process_by_pid = {} self.wake_events = [] self.cur_process = [None]*20 self.last_irq={} self.last_spi=[] self.missed_power_end = 0 self.get_partial_text = get_partial_text self.methods = {} for name in dir(self): method = getattr(self, name) if callable(method): self.methods[name] = method import plugin colors.parse_colors(plugin.get_plugins_additional_colors()) self.plugin_methods = plugin.get_plugins_additional_methods() self.process_types = { "irq":(tcProcess, plugin.IRQ_CLASS), "softirq":(tcProcess, plugin.IRQ_CLASS), "work":(tcProcess, plugin.WORK_CLASS), "function":(tcProcess, plugin.MISC_TRACES_CLASS), "event":(tcProcess, plugin.MISC_TRACES_CLASS), "kernel_process":(tcProcess, plugin.KERNEL_CLASS), "user_process":(tcProcess, plugin.KERNEL_CLASS)} self.process_types.update(plugin.get_plugins_additional_process_types())
def start_parsing(self, get_partial_text): # we build our data into python data formats, who are resizeable # once everything is parsed, we will transform it into numpy array, for fast access self.tmp_c_states = [] self.tmp_p_states = [] self.tmp_process = {} self.timestamps = [] self.linenumbers = [] self.cur_process_by_pid = {} self.wake_events = [] self.cur_process = [None]*20 self.last_irq={} self.last_spi=[] self.missed_power_end = 0 self.get_partial_text = get_partial_text self.methods = {} import plugin colors.parse_colors(plugin.get_plugins_additional_colors()) plugin.get_plugins_methods(self.methods) self.process_types = { "function":(tcProcess, plugin.MISC_TRACES_CLASS), "event":(tcProcess, plugin.MISC_TRACES_CLASS)} self.process_types.update(plugin.get_plugins_additional_process_types())