/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceImporterState.kt | 44 private fun createProcess(tgid: Int, name: String? = null): ThreadModelFragment { in <lambda>() 45 val proc = ProcessModelFragment(tgid, name) in <lambda>() 47 val thread = proc.threadFor(tgid, name) in <lambda>() 48 if (pidMap[tgid] != null) { in <lambda>() 49 IllegalStateException("Unable to create process $tgid - already exists!") in <lambda>() 51 pidMap.put(tgid, thread) in <lambda>() 55 fun processFor(tgid: Int, name: String? = null): ProcessModelFragment { in <lambda>() 56 val thread = pidMap[tgid] ?: createProcess(tgid, name) in <lambda>() 57 thread.process.hint(tgid, name) in <lambda>() 63 val tgid = process.id in <lambda>() constant [all …]
|
D | FtraceLine.kt | 41 var tgid: Int variable in trebuchet.importers.ftrace.FtraceLine 56 private fun set(taskName: String?, pid: Int, tgid: Int, cpu: Int, timestamp: Double, in set() 60 _tgid = tgid in set() 126 var tgid: Int = InvalidId in parseLine() variable 138 tgid = readInt() in parseLine() 153 ftraceLine.set(if (taskName === NullTaskName) null else taskName, pid, tgid, cpu, in parseLine()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/ |
D | TraceMarkerEvent.kt | 22 class BeginSliceEvent(val tgid: Int, val title: String) : FtraceEventDetails { in <lambda>() constant in trebuchet.importers.ftrace.events.BeginSliceEvent 24 state.threadFor(event.pid, tgid, event.task).slicesBuilder.beginSlice { in <lambda>() 33 state.threadFor(event.pid, event.tgid, event.task).slicesBuilder.endSlice { in import() 39 class CounterSliceEvent(val tgid: Int, val name: String, val value: Long) : FtraceEventDetails { constant in trebuchet.importers.ftrace.events.CounterSliceEvent 41 state.threadFor(event.pid, tgid, event.task).process in import() 47 class StartAsyncSliceEvent(val tgid: Int, val name: String, val cookie: Int) : FtraceEventDetails { constant in trebuchet.importers.ftrace.events.StartAsyncSliceEvent 49 state.processFor(tgid, event.task).asyncSlicesBuilder in import() 54 class FinishAsyncSliceEvent(val tgid: Int, val name: String, val cookie: Int) : FtraceEventDetails { constant in trebuchet.importers.ftrace.events.FinishAsyncSliceEvent 56 state.processFor(tgid, event.task).asyncSlicesBuilder in import() 64 val tgid = readInt() in BufferReader() constant [all …]
|
D | FtraceEvent.kt | 28 val tgid: Int, in <lambda>() constant in trebuchet.importers.ftrace.events.FtraceEvent 54 tgid = intOr(3, InvalidId), in <lambda>()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/ |
D | FtraceLineTest.kt | 35 assertEquals(7100, line.tgid) in <lambda>() 51 assertEquals(InvalidId, line.tgid) in <lambda>() 68 assertEquals(InvalidId, line.tgid) in <lambda>() 84 assertEquals(InvalidId, line.tgid) in <lambda>() 98 assertEquals(2303, line.tgid) in <lambda>() 113 assertEquals(12303, line.tgid) in <lambda>() 128 assertEquals(InvalidId, line.tgid) in <lambda>()
|
D | TracingMarkerEventTest.kt | 27 assertEquals(5000, begin.tgid) in testBegin() 37 assertEquals(42, counter.tgid) in testCounter() 61 assertEquals(1150, start.tgid) in testStartAsync() 68 assertEquals(1150, finish.tgid) in testFinishAsync()
|
D | FtraceEventTest.kt | 33 assertEquals(7100, event.tgid) in testParseLineComplete() 47 assertEquals(InvalidId, event.tgid) in testParseLineUnknownTgid() 59 assertEquals(InvalidId, event.tgid) in testParseLineNoTgid() 78 assertEquals(InvalidId, event.tgid) in testParseLineLegacy()
|
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/ |
D | ThreadModelFragment.kt | 28 …fun hint(pid: Int = InvalidId, name: String? = null, tgid: Int = InvalidId, processName: String? =… in hint() 31 if (this.process.id == InvalidId) this.process.id = tgid in hint()
|