Home
last modified time | relevance | path

Searched refs:trace_data (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium-trace/catapult/telemetry/telemetry/timeline/
Dtrace_data_unittest.py9 from telemetry.timeline import trace_data
13 ri = trace_data.TraceData({'traceEvents': [1, 2, 3]})
24 with self.assertRaises(trace_data.NonSerializableTraceData):
25 trace_data.TraceData({'hello': TraceDataTest})
31 with self.assertRaises(trace_data.NonSerializableTraceData):
32 trace_data.TraceData(d)
36 d = trace_data.TraceData([])
37 self.assertFalse(d.HasEventsFor(trace_data.CHROME_TRACE_PART))
40 d = trace_data.TraceData('')
41 self.assertFalse(d.HasEventsFor(trace_data.CHROME_TRACE_PART))
[all …]
Dtrace_event_importer_unittest.py11 from telemetry.timeline import trace_data as trace_data_module
38 trace_data = trace_data_module.TraceData(events)
39 m = timeline_model.TimelineModel(trace_data)
90 trace_data = trace_data_module.TraceData(events)
91 m = timeline_model.TimelineModel(trace_data)
107 trace_data = trace_data_module.TraceData(events)
108 m = timeline_model.TimelineModel(trace_data)
133 trace_data = trace_data_module.TraceData(events)
134 m = timeline_model.TimelineModel(trace_data, shift_world_to_zero=False)
173 trace_data = trace_data_module.TraceData(events)
[all …]
Dmodel.py21 from telemetry.timeline import trace_data as trace_data_module
53 def __init__(self, trace_data=None, shift_world_to_zero=True): argument
74 if trace_data is not None:
75 self.ImportTraces(trace_data, shift_world_to_zero=shift_world_to_zero)
139 def ImportTraces(self, trace_data, shift_world_to_zero=True): argument
149 assert isinstance(trace_data, trace_data_module.TraceData)
151 importers = self._CreateImporters(trace_data)
156 for record in trace_data.metadata_records:
265 def _CreateImporters(self, trace_data): argument
272 for part in trace_data.active_parts:
[all …]
Dmodel_unittest.py8 from telemetry.timeline import trace_data
13 model_module.TimelineModel(trace_data.TraceData())
16 builder = trace_data.TraceDataBuilder()
17 builder.AddEventsTo(trace_data.CHROME_TRACE_PART, [
Dsurface_flinger_importer.py6 from telemetry.timeline import trace_data as trace_data_module
9 def __init__(self, model, trace_data): argument
11 model, trace_data, import_order=2)
12 self._events = trace_data.GetEventsFor(
Dtab_id_importer.py8 from telemetry.timeline import trace_data as trace_data_module
15 def __init__(self, model, trace_data): argument
20 trace_data,
22 self._trace_data = trace_data
Dinspector_importer_unittest.py8 from telemetry.timeline import trace_data
113 builder = trace_data.TraceDataBuilder()
115 trace_data.INSPECTOR_TRACE_PART, [{
134 builder = trace_data.TraceDataBuilder()
135 builder.AddEventsTo(trace_data.INSPECTOR_TRACE_PART,
Dinspector_importer.py9 from telemetry.timeline import trace_data as trace_data_module
13 def __init__(self, model, trace_data): argument
15 trace_data,
17 self._events = trace_data.GetEventsFor(
Dimporter.py8 def __init__(self, model, trace_data, import_order): argument
10 self._trace_data = trace_data
Dtrace_event_importer.py17 from telemetry.timeline import trace_data as trace_data_module
21 def __init__(self, model, trace_data): argument
23 model, trace_data, import_order=1)
24 assert isinstance(trace_data, trace_data_module.TraceData)
25 self._trace_data = trace_data
32 self._events = trace_data.GetEventsFor(trace_data_module.CHROME_TRACE_PART)
/external/chromium-trace/catapult/systrace/systrace/agents/
Datrace_agent.py94 trace_data = self._collect_trace_data()
96 self._trace_data = self._preprocess_trace_data(trace_data)
188 trace_data = []
218 trace_data.append(chunk)
276 return trace_data
278 def _preprocess_trace_data(self, trace_data): argument
286 trace_data = ''.join(trace_data)
287 if trace_data:
288 trace_data = strip_and_decompress_trace(trace_data)
290 if not trace_data:
[all …]
Datrace_agent_unittest.py81 trace_data = atrace_agent.strip_and_decompress_trace(atrace_data_raw)
82 self.assertEqual(atrace_data_stripped, trace_data)
94 trace_data = atrace_agent.fix_thread_names(
96 self.assertEqual(atrace_data_thread_fixed, trace_data)
106 trace_data = agent._preprocess_trace_data(atrace_data_raw)
108 self.assertEqual(atrace_data, trace_data)
/external/chromium-trace/catapult/systrace/profile_chrome/
Dsystrace_controller.py84 trace_data = []
90 trace_data.append(
93 trace_data.append(
97 self._trace_data = ''.join([zlib.decompress(d) for d in trace_data])
100 def _DecodeTraceData(trace_data): argument
102 trace_start = trace_data.index('TRACE:')
105 trace_data = trace_data[trace_start + 6:]
108 if trace_data.startswith('\r\n'):
109 trace_data = trace_data.replace('\r\n', '\n')
112 return trace_data[1:]
/external/chromium-trace/catapult/tracing/tracing_build/
Dtrace2html.py89 for trace_data in trace_data_list:
94 if not isinstance(trace_data, basestring):
95 trace_data = json.dumps(trace_data)
99 scripts.append(ViewerDataScript(trace_data, mime_type))
108 trace_data = f.read()
110 trace_data = json.loads(trace_data)
113 trace_data_list.append(trace_data)
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dtracing_controller_unittest.py71 trace_data = tracing_controller.StopTracing()
73 model = model_module.TimelineModel(trace_data)
84 trace_data = tracing_controller.StopTracing()
86 model_module.TimelineModel(trace_data)
119 trace_data = tracing_controller.StopTracing()
123 model = model_module.TimelineModel(trace_data)
163 trace_data = platform.tracing_controller.StopTracing()
165 model_module.TimelineModel(trace_data)
/external/chromium-trace/catapult/telemetry/telemetry/value/
Dtrace_unittest.py13 from telemetry.timeline import trace_data
68 v = trace.TraceValue(self.pages[0], trace_data.TraceData({'test': 1}),
76 v = trace.TraceValue(None, trace_data.TraceData({'test': 1}))
91 v = trace.TraceValue(None, trace_data.TraceData({'test': 1}))
117 with trace.TraceValue(None, trace_data.TraceData({'test': 1})):
122 v = trace.TraceValue(None, trace_data.TraceData({'test': 1}))
Dtrace.py17 from telemetry.timeline import trace_data as trace_data_module
24 def __init__(self, page, trace_data, important=False, description=None): argument
35 self._temp_file = self._GetTempFileHandle(trace_data)
39 def _GetTempFileHandle(self, trace_data): argument
46 [trace_data.GetEventsFor(trace_data_module.CHROME_TRACE_PART)],
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dtrace_profiler.py10 from telemetry.timeline import trace_data as trace_data_module
48 trace_data = StringIO.StringIO()
49 trace_result.Serialize(trace_data)
51 z.writestr(trace_name, trace_data.getvalue())
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/tracing_agent/
Ddisplay_tracing_agent.py6 from telemetry.timeline import trace_data
26 trace_data.SURFACE_FLINGER_PART, surface_flinger_trace_data)
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/
Daction_runner_unittest.py19 def GetInteractionRecords(self, trace_data): argument
20 timeline_model = model.TimelineModel(trace_data)
40 trace_data = self._browser.platform.tracing_controller.StopTracing()
42 records = self.GetInteractionRecords(trace_data)
46 ' Trace data:\n%s' % repr(trace_data._raw_data))
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Dtracing_backend_unittest.py63 trace_data = self._tracing_controller.StopTracing()
69 model = model_module.TimelineModel(trace_data)
90 trace_data = self._tracing_controller.StopTracing()
96 model = model_module.TimelineModel(trace_data)
Ddevtools_client_backend_unittest.py8 from telemetry.timeline import trace_data
90 builder = trace_data.TraceDataBuilder()
/external/chromium-trace/catapult/telemetry/telemetry/internal/results/
Dpage_test_results_unittest.py12 from telemetry.timeline import trace_data
254 results.AddValue(trace.TraceValue(None, trace_data.TraceData({'test' : 1})))
258 results.AddValue(trace.TraceValue(None, trace_data.TraceData({'test' : 2})))
268 v0 = trace.TraceValue(None, trace_data.TraceData({'test': 1}))
269 v1 = trace.TraceValue(None, trace_data.TraceData({'test': 2}))
285 v0 = trace.TraceValue(None, trace_data.TraceData({'test': 1}))
286 v1 = trace.TraceValue(None, trace_data.TraceData({'test': 2}))
Djson_output_formatter_unittest.py16 from telemetry.timeline import trace_data
88 trace_data.TraceData({'event': 'test'}))
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/
Dtab_unittest.py131 trace_data = self._browser.platform.tracing_controller.StopTracing()
132 timeline_model = model.TimelineModel(trace_data)
165 trace_data = self._browser.platform.tracing_controller.StopTracing()
166 timeline_model = model.TimelineModel(trace_data)

12