Lines Matching refs:trace_data
81 trace_data = self._collect_trace_data();
83 self._trace_data = self._preprocess_trace_data(trace_data);
175 trace_data = []
205 trace_data.append(chunk)
262 return trace_data
264 def _preprocess_trace_data(self, trace_data): argument
272 trace_data = ''.join(trace_data)
276 trace_data, thread_names = extract_thread_list(trace_data)
278 if trace_data:
279 trace_data = strip_and_decompress_trace(trace_data)
281 if not trace_data:
287 trace_data = fix_thread_names(trace_data, thread_names)
290 trace_data = fix_circular_traces(trace_data)
292 return trace_data
438 def extract_thread_list(trace_data): argument
448 trace_data, 1)
450 trace_data = parts[0]
458 return (trace_data, threads)
461 def strip_and_decompress_trace(trace_data): argument
470 if trace_data.startswith('\r\n'):
471 trace_data = trace_data.replace('\r\n', '\n')
472 elif trace_data.startswith('\r\r\n'):
474 trace_data = trace_data.replace('\r\r\n', '\n')
477 trace_data = trace_data[1:]
479 if not trace_data.startswith(TRACE_TEXT_HEADER):
481 trace_data = zlib.decompress(trace_data)
484 trace_data = trace_data.replace('\r', '')
487 while trace_data and trace_data[0] == '\n':
488 trace_data = trace_data[1:]
490 return trace_data
493 def fix_thread_names(trace_data, thread_names): argument
514 trace_data = re.sub(r'^\s*(\S+)-(\d+)', repl, trace_data,
516 return trace_data