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
open override fun <P, S> onPropsChanged(old: P, new: P, state: S, proceed: (P, P, S) -> S, session: WorkflowInterceptor.WorkflowSession): S
Link copied to clipboard
open override fun <P, S, O, R> onRender(renderProps: P, renderState: S, context: BaseRenderContext<P, S, O>, proceed: (P, S, WorkflowInterceptor.RenderContextInterceptor<P, S, O>?) -> R, session: WorkflowInterceptor.WorkflowSession): R
Link copied to clipboard
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?