TraceProcessor.Companion



Summary

Public functions

T
@ExperimentalTraceProcessorApi
@<Error class: unknown class>
<T : Any?> runServer(
    serverLifecycleManager: ServerLifecycleManager,
    eventCallback: TraceProcessor.EventCallback,
    tracer: TraceProcessor.Tracer,
    timeout: Duration,
    block: TraceProcessor.() -> T
)

Starts a Perfetto trace processor shell server in http mode, loads a trace and executes the given block.

Cmn

Extension functions

T

Starts a Perfetto Trace Processor shell server in http mode, loads a trace and executes the given block.

android
T
<T : Any?> TraceProcessor.Companion.runServer(
    timeout: Duration,
    block: TraceProcessor.() -> T
)

Starts a Perfetto Trace Processor shell server in http mode, loads a trace and executes the given block.

android

Public functions

runServer

@ExperimentalTraceProcessorApi
@<Error class: unknown class>
fun <T : Any?> runServer(
    serverLifecycleManager: ServerLifecycleManager,
    eventCallback: TraceProcessor.EventCallback,
    tracer: TraceProcessor.Tracer,
    timeout: Duration = SERVER_START_TIMEOUT_MS,
    block: TraceProcessor.() -> T
): T

Starts a Perfetto trace processor shell server in http mode, loads a trace and executes the given block.

Parameters
serverLifecycleManager: ServerLifecycleManager

controls starting and stopping the TraceProcessor process.

eventCallback: TraceProcessor.EventCallback

callback for events such as trace load failure.

tracer: TraceProcessor.Tracer

used to trace begin and end of significant events within this managed run.

timeout: Duration = SERVER_START_TIMEOUT_MS

waiting for the server to start. If less or equal to zero use 60 seconds

block: TraceProcessor.() -> T

Command to execute using trace processor

Extension functions

runServer

fun <T : Any?> TraceProcessor.Companion.runServer(block: TraceProcessor.() -> T): T

Starts a Perfetto Trace Processor shell server in http mode, loads a trace and executes the given block. It stops the server after the block is complete

Uses a default timeout of 60 seconds.

Parameters
block: TraceProcessor.() -> T

Command to execute using trace processor

runServer

fun <T : Any?> TraceProcessor.Companion.runServer(
    timeout: Duration,
    block: TraceProcessor.() -> T
): T

Starts a Perfetto Trace Processor shell server in http mode, loads a trace and executes the given block. It stops the server after the block is complete

Parameters
timeout: Duration

waiting for the server to start. If less or equal to zero uses 60 seconds

block: TraceProcessor.() -> T

Command to execute using trace processor