TracingWorkflowInterceptor
A WorkflowInterceptor that generates a trace file that can be viewed in Chrome by visiting chrome://tracing
.
Constructors
Link copied to clipboard
constructor(memoryStats: MemoryStats = RuntimeMemoryStats, loggerProvider: (workflowScope: CoroutineScope, workflowType: String) -> TraceLogger)
A WorkflowInterceptor that generates a trace file that can be viewed in Chrome by visiting chrome://tracing
.
Functions
Link copied to clipboard
open override fun <P, S> onInitialState(props: P, snapshot: Snapshot?, workflowScope: CoroutineScope, proceed: (P, Snapshot?, CoroutineScope) -> S, session: WorkflowInterceptor.WorkflowSession): S
Link copied to clipboard
Link copied to clipboard
open fun <P, R> onRenderAndSnapshot(renderProps: P, proceed: (P) -> RenderingAndSnapshot<R>, session: WorkflowInterceptor.WorkflowSession): RenderingAndSnapshot<R>
Link copied to clipboard
open override fun onSessionStarted(workflowScope: CoroutineScope, session: WorkflowInterceptor.WorkflowSession)
Link copied to clipboard
open override fun <S> onSnapshotState(state: S, proceed: (S) -> Snapshot?, session: WorkflowInterceptor.WorkflowSession): Snapshot?
Link copied to clipboard
open fun onSnapshotStateWithChildren(proceed: () -> TreeSnapshot, session: WorkflowInterceptor.WorkflowSession): TreeSnapshot