Home
last modified time | relevance | path

Searched refs:slices (Results 1 – 18 of 18) sorted by relevance

/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/
DImportTaskTest.kt28 import trebuchet.queries.slices.* in <lambda>()
36 val slices = model.selectAll { it.name.startsWith("MergeShot")} in <lambda>() constant
37 assertEquals(2, slices.size) in <lambda>()
38 assertEquals(0.868, slices[0].duration, .001) in <lambda>()
39 assertEquals(0.866, slices[1].duration, .001) in <lambda>()
48 val slices = thread.selectAll { it.name == "handleMessageRefresh" } in <lambda>() constant
49 assertEquals(103, slices.size) in <lambda>()
50 assertFalse(slices.any { it.duration <= 0.0 }) in <lambda>()
51 val totalDuration = slices.map { it.duration }.reduce { a,b -> a+b } in <lambda>()
/tools/trebuchet/trebuchet/analyzer/src/
DAnalyzer.kt19 import trebuchet.queries.slices.* in <lambda>()
25 val slices = model.slices().filter { it.name.startsWith("MergeShot") } in <lambda>() constant
26 slices.forEach { println("${it.name} took ${it.duration}") } in <lambda>()
27 val totalDuration = slices.map { it.duration }.reduce { a, b -> a+b } in <lambda>()
34 it.slices.any { in measureStartup()
40 val start = uiThread.slices.first { in measureStartup()
43 val end = rtThread.slices.first { in measureStartup()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/
DSliceQueries.kt17 package trebuchet.queries.slices in <lambda>()
27 import trebuchet.util.slices.parseSliceName in <lambda>()
198 this.slices.traverseSlices(visitor) in traverseSlices()
237 this.slices.iterSlices(consumer) in ThreadModel()
401 private suspend fun SequenceScope<Slice>.yieldSlices(slices: List<SliceGroup>) { in yieldSlices()
402 slices.forEach { in yieldSlices()
408 fun Model.slices(includeAsync: Boolean = true): Sequence<Slice> { in slices() method
416 yieldSlices(thread.slices) in slices()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/model/
DSliceGroupBuilderTest.kt37 assertEquals(slice, group.slices.first()) in testSimpleBuild()
56 assertEquals(0, group.slices.size) in testNestedBuild()
63 assertEquals(1, group.slices.size) in testNestedBuild()
64 assertEquals(slice, group.slices.first()) in testNestedBuild()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt28 open class SliceTrack<in T : Slice>(private val slices: List<T>, private val renderState: RenderSta… constant in traceviewer.ui.tracks.SliceTrack
50 slices.forEach { in paintComponent()
88 private fun sliceAt(timestamp: Double) = slices.binarySearch { in <lambda>()
94 }.let { if (it < 0) null else slices[it] } in <lambda>()
DMultiLineTrack.kt36 val rows = RowCreater(thread.slices).rows
42 class RowCreater constructor(slices: List<SliceGroup>) {
48 slices.forEach { addSlice(it) } in <lambda>()
DSchedTrack.kt27 class SchedTrack(slices: List<SchedSlice>, renderState: RenderState)
28 … : SliceTrack<SchedSlice>(slices, renderState, trackHeight = LayoutConstants.SchedTrackHeight) {
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/
DCpuModel.kt22 val slices = fragment.slices constant
23 val hasContent = slices.isNotEmpty()
DThreadModel.kt24 val slices = fragment.slices constant
26 val hasContent = slices.isNotEmpty() || schedSlices.isNotEmpty()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DThreadModelFragment.kt35 val slices: List<SliceGroup> get() { constant in trebuchet.model.fragments.ThreadModelFragment
39 return slicesBuilder.slices
44 return schedulingStateBuilder.slices
DCpuModelFragment.kt26 val slices: List<CpuProcessSlice> get() { constant in trebuchet.model.fragments.CpuModelFragment
27 return schedulingProcessBuilder.slices
DSliceGroupBuilder.kt22 val slices: MutableList<MutableSliceGroup> = mutableListOf() constant in trebuchet.model.fragments.SliceGroupBuilder
42 slices.add(builder) in endSlice()
DSchedulingSliceFragment.kt30 val slices: List<SchedulingSliceFragment> get() = _slices constant in trebuchet.model.fragments.SchedulingSliceFragment.Builder
DSchedulingProcessFragment.kt26 val slices: List<SchedulingProcessFragment> get() = _slices constant in trebuchet.model.fragments.SchedulingProcessFragment.Builder
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceImporterTest.kt83 assertEquals(1, sliceGroup.slices.size) in testImportBeginEnd()
84 val doFrameSlice = sliceGroup.slices[0] in testImportBeginEnd()
119 assertEquals(1, sliceGroup.slices.size) in testImportBeginEndNoTgids()
120 val doFrameSlice = sliceGroup.slices[0] in testImportBeginEndNoTgids()
/tools/trebuchet/trebuchet/startup-common/src/
DStartupCommon.kt32 import trebuchet.queries.slices.* in <lambda>()
33 import trebuchet.util.slices.* in <lambda>()
115 map { it.slices }. in findProcess()
145 …val firstSliceTime = newProc.threads.map { it.slices.firstOrNull()?.startTime ?: Double.POSITIVE_I… in Model()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DSlices.kt17 package trebuchet.util.slices
/tools/trebuchet/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt36 import trebuchet.util.slices.* in <lambda>()