Home
last modified time | relevance | path

Searched refs:sub_slice (Results 1 – 5 of 5) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/timeline/
Dasync_slice.py25 def AddSubSlice(self, sub_slice): argument
26 assert sub_slice.parent_slice == self
27 self.sub_slices.append(sub_slice)
30 for sub_slice in self.sub_slices:
31 yield sub_slice
Dslice.py27 def AddSubSlice(self, sub_slice): argument
28 assert sub_slice.parent_slice == self
29 self.sub_slices.append(sub_slice)
69 for sub_slice in self.sub_slices:
70 for s in sub_slice.GetAllSubSlices():
72 yield sub_slice
Dtrace_event_importer.py346 sub_slice = tracing_async_slice.AsyncSlice(
350 sub_slice.parent_slice = async_slice
352 sub_slice.duration = ((events[j]['event']['ts'] / 1000.0)
355 sub_slice.start_thread = events[j - 1]['thread']
356 sub_slice.end_thread = events[j]['thread']
357 if sub_slice.start_thread == sub_slice.end_thread:
360 sub_slice.thread_duration = \
364 sub_slice.id = event_id
365 sub_slice.args = events[j - 1]['event']['args']
367 async_slice.AddSubSlice(sub_slice)
Dtrace_event_importer_unittest.py771 sub_slice = parent_slice.sub_slices[0]
772 self.assertEqual(1, sub_slice.args['x'])
773 self.assertEqual(2, sub_slice.args['y'])
795 sub_slice = parent_slice.sub_slices[0]
796 self.assertEqual(4, sub_slice.args['z'])
821 sub_slice = parent_slice.sub_slices[0]
822 self.assertEqual('a', sub_slice.name)
823 self.assertEqual('foo', sub_slice.category)
824 self.assertAlmostEqual(0, sub_slice.start)
825 self.assertAlmostEqual((548 - 524) / 1000.0, sub_slice.duration)
[all …]
Dthread.py67 for sub_slice in async_slice.IterEventsInThisContainerRecrusively():
68 if event_predicate(sub_slice):
69 yield sub_slice