Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class DefaultTRTextAppendable(destination: Appendable, val verbose: Boolean = false) : AbstractTRAppendable
Link copied to clipboard
class FileStreamingTraceCollecting(dataStream: OutputStream, indexStream: OutputStream, val context: TraceContext) : TraceCollectingStrategy, ContextSavingState
Link copied to clipboard

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

Link copied to clipboard
class MemoryTraceCollecting(context: TraceContext) : TraceCollectingStrategy
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 TraceMetaInfo

Information about conditions in which trace was collected.

Link copied to clipboard

Interface for implementing trace points modification algorithms in order for trace to look better when viewed in the plugin. This interface is used when the tree structure could potentially change and TRPointPrinter's cannot help (see TRTracePointPrinters.kt).

Link copied to clipboard
data class TraceWithContext(val context: TraceContext, val metaInfo: TraceMetaInfo?, val roots: List<TRTracePoint>)

Class which describes fully loaded trace.

Link copied to clipboard
interface TRAppendable
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 flags: Short = 0, var parentTracePoint: TRMethodCallTracePoint? = null, 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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val TR_OBJECT_P_INT: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun TRAppendable.appendAccessPath(accessPath: AccessPath)
Link copied to clipboard
fun isPackedTrace(traceFileName: String): Boolean
Link copied to clipboard
fun isTraceData(firstBytes: ByteBuffer): Boolean
fun isTraceData(traceFileName: String): Boolean
Link copied to clipboard

Load unpacked trace. inp must be stream pointing to binary trace format, not packed in any way.

Load trace from file. File can contain unpacked binary trace (without index) or packed trace with metainfo, data and index inside.

Link copied to clipboard
Link copied to clipboard
fun packRecordedTrace(baseFileName: String, metaInfo: TraceMetaInfo, deleteSources: Boolean = true)
Link copied to clipboard
fun printPostProcessedTrace(outputFileName: String?, inputFileName: String, verbose: Boolean)
fun printPostProcessedTrace(outputFileName: String?, context: TraceContext, rootCallsPerThread: List<TRTracePoint>, verbose: Boolean)
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