Google is committed to advancing racial equity for Black communities. See how.

fuchsia.device.schedule.work.test

PROTOCOLS

OwnedChannelDevice

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

ScheduleWork

Schedules work and blocks until it completes. |batch_size| refers to how many work_items to keep outstanding at any given time, while |num_work_items| refers to total number of work items.

Request

NameType
batch_size uint32
num_work_items uint32

Response

NameType
result OwnedChannelDevice_ScheduleWork_Result

TestDevice

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

GetChannel

Spawns an thread with a dedicated async loop.

Request

NameType
test request<OwnedChannelDevice>

Response

NameType
result TestDevice_GetChannel_Result

GetDoneEvent

Triggers once all outstanding work is complete.

Request

NameType

Response

NameType
result TestDevice_GetDoneEvent_Result

ScheduleWork

Schedules work. |batch_size| refers to how many work_items to keep outstanding at any given time, while |num_work_items| refers to total number of work items.

Request

NameType
batch_size uint32
num_work_items uint32

Response

NameType
result TestDevice_ScheduleWork_Result

ScheduleWorkDifferentThread

Spawns a thread which schedules work.

Request

NameType

Response

NameType
result TestDevice_ScheduleWorkDifferentThread_Result

ScheduledWorkRan

Returns whether how many work items ran since last time it was invoked.

Request

NameType

Response

NameType
work_items_run uint32
histogram LatencyHistogram

STRUCTS

LatencyHistogram

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

Buckets are arranged as following: [0] => [0ns, 100ns] [1] => [100ns, 250ns] [2] => [250ns, 500ns] [3] => [500ns, 1us] [4] => [1us, 2us] [5] => [2us, 4us] [6] => [4us, 7us] [7] => [7us, 15us] [8] => [15us, 30us] [9] => [30us, infinity]

NameTypeDescriptionDefault
buckets uint64[10] No default

OwnedChannelDevice_ScheduleWork_Response

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescriptionDefault
histogram LatencyHistogram No default

TestDevice_GetChannel_Response

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescriptionDefault

TestDevice_GetDoneEvent_Response

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescriptionDefault
event handle<event> No default

TestDevice_ScheduleWorkDifferentThread_Response

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescriptionDefault

TestDevice_ScheduleWork_Response

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescriptionDefault

UNIONS

OwnedChannelDevice_ScheduleWork_Result

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescription
response OwnedChannelDevice_ScheduleWork_Response
err zx/status

TestDevice_GetChannel_Result

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescription
response TestDevice_GetChannel_Response
err zx/status

TestDevice_GetDoneEvent_Result

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescription
response TestDevice_GetDoneEvent_Response
err zx/status

TestDevice_ScheduleWorkDifferentThread_Result

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescription
response TestDevice_ScheduleWorkDifferentThread_Response
err zx/status

TestDevice_ScheduleWork_Result

Defined in fuchsia.device.schedule.work.test/schedule-work.test.fidl

NameTypeDescription
response TestDevice_ScheduleWork_Response
err zx/status