fuchsia.tracing.controller

PROTOCOLS

Controller

Defined in fuchsia.tracing.controller/trace_controller.fidl

StartTracing

Request

NameType
options TraceOptions
output handle<socket>

Response

NameType

StopTracing

Request

NameType

GetProviders

Return the set of registered providers.

Request

NameType

Response

NameType
providers vector<ProviderInfo>[100]

GetKnownCategories

Request

NameType

Response

NameType
categories vector<KnownCategory>

STRUCTS

KnownCategory

Defined in fuchsia.tracing.controller/trace_controller.fidl

NameTypeDescriptionDefault
name string[100] No default
description string No default

ENUMS

BufferingMode

Type: uint8

Defined in fuchsia.tracing.controller/trace_controller.fidl

NameValueDescription
ONESHOT 0
CIRCULAR 1
STREAMING 2

TABLES

ProviderSpec

Defined in fuchsia.tracing.controller/trace_controller.fidl

OrdinalNameTypeDescription
1 name string[100]
2 buffer_size_megabytes_hint uint32

TraceOptions

Defined in fuchsia.tracing.controller/trace_controller.fidl

Provides options for the trace.

OrdinalNameTypeDescription
1 categories vector<string>[100]

The trace categories to record, or an empty array for all.

2 buffer_size_megabytes_hint uint32

Suggested size of trace buffer which each provider should receive.

3 start_timeout_milliseconds uint64

Acknowledge start request after at most start_timeout_milliseconds.

4 buffering_mode BufferingMode
5 provider_specs vector<ProviderSpec>[100]

Overrides for particular providers.

ProviderInfo

Defined in fuchsia.tracing.controller/trace_controller.fidl

Result of |GetProviders|.

OrdinalNameTypeDescription
1 id uint32

The provider's ID, assigned by trace-manager.

2 pid zx/koid

The provider's pid.

3 name string[100]

The name of the provider.

CONSTANTS

NameValueTypeDescription
MAX_NUM_PROVIDERS 100 uint32

The maximum number of providers supported.

MAX_PROVIDER_NAME_LENGTH 100 uint32

The maximum length of a provider's name.

MAX_NUM_CATEGORIES 100 uint32

The maximum number of categories supported.

MAX_CATEGORY_NAME_LENGTH 100 uint32

The maximum length of a category name.