class Task
Defined at line 277 of file fidling/gen/sdk/fidl/fuchsia.cpu.profiler/fuchsia.cpu.profiler/cpp/fidl/fuchsia.cpu.profiler/cpp/natural_types.h
An adhoc set of running tasks to attach to.
Public Methods
void Task (Task && other)
Task & operator= (Task && other)
void Task (const Task & other)
Task & operator= (const Task & other)
bool operator== (const Task & other)
bool operator!= (const Task & other)
bool IsUnknown ()
::fuchsia_cpu_profiler::Task::Tag Which ()
Task WithProcess (uint64_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> process ()
::fidl::internal::UnionMemberView<1, Storage_> process ()
Task & process (uint64_t value)
Profile a process and all threads associated with it.
Task WithThread (uint64_t val)
const ::fidl::internal::UnionMemberView<2, Storage_> thread ()
::fidl::internal::UnionMemberView<2, Storage_> thread ()
Task & thread (uint64_t value)
Profile a single thread.
Task WithJob (uint64_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> job ()
::fidl::internal::UnionMemberView<3, Storage_> job ()
Task & job (uint64_t value)
Profile a job and all processes and threads associated with it.
Task WithSystemWide (::fuchsia_cpu_profiler::SystemWide val)
const ::fidl::internal::UnionMemberView<4, Storage_> system_wide ()
::fidl::internal::UnionMemberView<4, Storage_> system_wide ()
Task & system_wide (::fuchsia_cpu_profiler::SystemWide value)
Profile everything running on the system.
Equivalent to finding root job's koid and passing it as a Task::job.
void Task (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Enumerations
enum Tag
| Name | Value |
|---|---|
| kProcess | 1 |
| kThread | 2 |
| kJob | 3 |
| kSystemWide | 4 |
| _do_not_handle_this__write_a_default_case_instead | ::std::numeric_limits<::fidl_union_tag_t>::max() |
TODO: share union tag types between wire
&
natural.
Defined at line 285 of file fidling/gen/sdk/fidl/fuchsia.cpu.profiler/fuchsia.cpu.profiler/cpp/fidl/fuchsia.cpu.profiler/cpp/natural_types.h
Friends
class NaturalUnionCodingTraits