MemoryTraceCollecting

class MemoryTraceCollecting(context: TraceContext) : TraceCollectingStrategy

Constructors

Link copied to clipboard
constructor(context: TraceContext)

Functions

Link copied to clipboard
open override fun callEnded(thread: Thread, callTracepoint: TRMethodCallTracePoint)

Must be called when the method call is ended and the call stack is popped.

Link copied to clipboard
open override fun completeThread(thread: Thread)

Makes sure that thread has written all of its recorded data.

Link copied to clipboard
open override fun registerCurrentThread(threadId: Int)

Register current thread in strategy.

Link copied to clipboard
open override fun traceEnded()

Do nothing. Trace collected in memory can be saved by external means, if needed.

Link copied to clipboard
open override fun tracePointCreated(parent: TRMethodCallTracePoint?, created: TRTracePoint)

Must be called when a new tracepoint is created.