Package-level declarations

Types

Link copied to clipboard
class FileStreamingTraceCollecting(dataStream: OutputStream, indexStream: OutputStream, val context: TraceContext) : TraceCollectingStrategy, ContextSavingState
Link copied to clipboard
class LazyTraceReader(dataFileName: String, index: DataInputStream?) : Closeable

This needs a file name as it uses a seekable file channel, it is easier than seekable stream

Link copied to clipboard

It is a strategy to collect trace: it can be full-track in memory or streaming to a file on-the-fly

Link copied to clipboard
data class TraceWithContext(val context: TraceContext, val roots: List<TRTracePoint>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TRMethodCallTracePoint(val threadId: Int, val codeLocationId: Int, val methodId: Int, val obj: TRObject?, val parameters: List<TRObject?>, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRTracePoint
Link copied to clipboard
data class TRObject
Link copied to clipboard
class TRReadArrayTracePoint(val threadId: Int, val codeLocationId: Int, val array: TRObject, val index: Int, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRArrayTracePoint
Link copied to clipboard
class TRReadLocalVariableTracePoint(val threadId: Int, val codeLocationId: Int, val localVariableId: Int, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRLocalVariableTracePoint
Link copied to clipboard
class TRReadTracePoint(val threadId: Int, val codeLocationId: Int, val fieldId: Int, val obj: TRObject?, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRFieldTracePoint
Link copied to clipboard
sealed class TRTracePoint
Link copied to clipboard
class TRWriteArrayTracePoint(val threadId: Int, val codeLocationId: Int, val array: TRObject, val index: Int, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRArrayTracePoint
Link copied to clipboard
class TRWriteLocalVariableTracePoint(val threadId: Int, val codeLocationId: Int, val localVariableId: Int, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRLocalVariableTracePoint
Link copied to clipboard
class TRWriteTracePoint(val threadId: Int, val codeLocationId: Int, val fieldId: Int, val obj: TRObject?, val value: TRObject?, val eventId: Int = EVENT_ID_GENERATOR.getAndIncrement()) : TRFieldTracePoint

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun printRecorderTrace(output: OutputStream, context: TraceContext, rootCallsPerThread: List<TRTracePoint>, verbose: Boolean)
fun printRecorderTrace(fileName: String?, context: TraceContext, rootCallsPerThread: List<TRTracePoint>, verbose: Boolean)
Link copied to clipboard
fun saveRecorderTrace(baseFileName: String, context: TraceContext, rootCallsPerThread: List<TRTracePoint>)

Top-level function to save full-depth recorded trace old-style (all in once)

fun saveRecorderTrace(data: OutputStream, index: OutputStream, context: TraceContext, rootCallsPerThread: List<TRTracePoint>)
Link copied to clipboard
fun TRObject(obj: Any): TRObject
Link copied to clipboard
Link copied to clipboard