def _preprocess_data(self, data): # TODO: add fix_threads and fix_tgids options back in here # once we embed the dump data in the file (b/27504068) data = atrace_agent.strip_and_decompress_trace(data) if self._fix_circular_traces: data = atrace_agent.fix_circular_traces(data) return data