fuchsia.cobalt

PROTOCOLS

LoggerFactory

Defined in fuchsia.cobalt/cobalt.fidl

CreateLogger

Request

NameType
profile ProjectProfile
logger request<Logger>

Response

NameType
status Status

CreateLoggerSimple

Request

NameType
profile ProjectProfile
logger request<LoggerSimple>

Response

NameType
status Status

CreateLoggerFromProjectName

Request

NameType
project_name string[64]
release_stage ReleaseStage
logger request<Logger>

Response

NameType
status Status

CreateLoggerSimpleFromProjectName

Request

NameType
project_name string[64]
release_stage ReleaseStage
logger request<LoggerSimple>

Response

NameType
status Status

LoggerBase

Defined in fuchsia.cobalt/cobalt.fidl

LoggerBase Interface

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

LogString

Request

NameType
metric_id uint32
s string[256]

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

Logger

Defined in fuchsia.cobalt/cobalt.fidl

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

LogString

Request

NameType
metric_id uint32
s string[256]

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

LogIntHistogram

Request

NameType
metric_id uint32
event_code uint32
component string[64]
histogram vector<HistogramBucket>[100]

Response

NameType
status Status

LogCustomEvent

Request

NameType
metric_id uint32
event_values vector<CustomEventValue>

Response

NameType
status Status

LogCobaltEvent

Request

NameType
event CobaltEvent

Response

NameType
status Status

LogCobaltEvents

Request

NameType
events vector<CobaltEvent>[64]

Response

NameType
status Status

LoggerSimple

Defined in fuchsia.cobalt/cobalt.fidl

LoggerSimple Interface

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

LogString

Request

NameType
metric_id uint32
s string[256]

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

LogIntHistogram

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bucket_indices vector<uint32>[100]
bucket_counts vector<uint64>[100]

Response

NameType
status Status

SystemDataUpdater

Defined in fuchsia.cobalt/cobalt.fidl

SetExperimentState

Request

NameType
experiments vector<Experiment>

Response

NameType
status Status

SetChannel

Request

NameType
current_channel string[256]

Response

NameType
status Status

Controller

Defined in fuchsia.cobalt/cobalt_controller.fidl

RequestSendSoon

Request

NameType

Response

NameType
success bool

BlockUntilEmpty

Request

NameType
max_wait_seconds uint32

Response

NameType

GetNumSendAttempts

Request

NameType

Response

NameType
num uint32

GetFailedSendAttempts

Request

NameType

Response

NameType
num uint32

GetNumObservationsAdded

Request

NameType

Response

NameType
num_obs uint64

GenerateAggregatedObservations

Request

NameType
day_index uint32
report_ids vector<uint32>

Response

NameType
num_obs vector<uint64>

STRUCTS

ProjectProfile

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
config fuchsia.mem/Buffer No default
release_stage ReleaseStage No default

CustomEventValue

Defined in fuchsia.cobalt/cobalt.fidl

Logger Interface

NameTypeDescriptionDefault
dimension_name string No default
value Value No default

HistogramBucket

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
index uint32 No default
count uint64 No default

CountEvent

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
period_duration_micros int64 No default
count int64 No default

Event

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault

CobaltEvent

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
metric_id uint32 No default
event_codes vector<uint32>[5] No default
component string[64]? No default
payload EventPayload No default

Experiment

Defined in fuchsia.cobalt/cobalt.fidl

SystemProfileUpdater Interface

NameTypeDescriptionDefault
experiment_id uint64 No default
arm_id uint32 No default

ENUMS

Status

Type: int32

Defined in fuchsia.cobalt/cobalt.fidl

NameValueDescription
OK 0
INVALID_ARGUMENTS 1
EVENT_TOO_BIG 2
BUFFER_FULL 3
INTERNAL_ERROR -1

ReleaseStage

Type: int32

Defined in fuchsia.cobalt/cobalt.fidl

NameValueDescription
GA 0
DOGFOOD 10
FISHFOOD 20
DEBUG 99

UNIONS

Value

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescription
string_value string
int_value int64
double_value float64
index_value uint32

EventPayload

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescription
event Event
event_count CountEvent
elapsed_micros int64
fps float32
memory_bytes_used int64
string_event string[256]
int_histogram vector<HistogramBucket>[100]

CONSTANTS

NameValueTypeDescription
MAX_BYTES_PER_EVENT 102400 int64
MAX_HISTOGRAM_BUCKETS 100 uint32
MAX_BATCHED_EVENTS 64 uint32
MAX_COMPONENT_LENGTH 64 uint32
MAX_PROJECT_NAME_LENGTH 64 uint32
MAX_TIMER_ID_LENGTH 64 uint32
MAX_STRING_EVENT_SIZE 256 uint32
MAX_EVENT_CODE_COUNT 5 uint32
MAX_CHANNEL_NAME_LENGTH 256 uint32