TraceProcessorExtensionsKt

Added in 1.4.0-alpha08

public final class TraceProcessorExtensionsKt


Summary

Public methods

static final @NonNull T

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

static final @NonNull T
@ExperimentalTraceProcessorApi
@RequiresApi(value = 23)
<T extends Object> runServer(
    @NonNull TraceProcessor.Companion receiver,
    @NonNull Duration timeout,
    @ExtensionFunctionType @NonNull Function1<@NonNull TraceProcessor, @NonNull T> block
)

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

Public methods

@ExperimentalTraceProcessorApi
@RequiresApi(value = 23)
public static final @NonNull T <T extends Object> runServer(
    @NonNull TraceProcessor.Companion receiver,
    @ExtensionFunctionType @NonNull Function1<@NonNull TraceProcessor, @NonNull T> block
)

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
@ExtensionFunctionType @NonNull Function1<@NonNull TraceProcessor, @NonNull T> block

Command to execute using trace processor

@ExperimentalTraceProcessorApi
@RequiresApi(value = 23)
public static final @NonNull T <T extends Object> runServer(
    @NonNull TraceProcessor.Companion receiver,
    @NonNull Duration timeout,
    @ExtensionFunctionType @NonNull Function1<@NonNull TraceProcessor, @NonNull T> block
)

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
@NonNull Duration timeout

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

@ExtensionFunctionType @NonNull Function1<@NonNull TraceProcessor, @NonNull T> block

Command to execute using trace processor