template <>
class WireServer
Defined at line 5744 of file fidling/gen/sdk/fidl/fuchsia.kernel/fuchsia.kernel/cpp/fidl/fuchsia.kernel/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_kernel::Stats>|
and |::fidl::ServerEnd
<
::fuchsia_kernel::Stats>|).
Public Methods
void GetMemoryStats (GetMemoryStatsCompleter::Sync & completer)
void GetMemoryStatsExtended (GetMemoryStatsExtendedCompleter::Sync & completer)
void GetMemoryStatsCompression (GetMemoryStatsCompressionCompleter::Sync & completer)
void GetCpuStats (GetCpuStatsCompleter::Sync & completer)
void GetCpuLoad (::fuchsia_kernel::wire::StatsGetCpuLoadRequest * request, GetCpuLoadCompleter::Sync & completer)
Gets the average load as a percentage (0.0 - 100.0) from each CPU over the specified
duration.
Load is calculated as (100 - %idle), where %idle is the percentage value of idle_time (from
PerCpuStats) over a time duration.
void WireServer ()
Defined at line 5747 of file fidling/gen/sdk/fidl/fuchsia.kernel/fuchsia.kernel/cpp/fidl/fuchsia.kernel/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 5748 of file fidling/gen/sdk/fidl/fuchsia.kernel/fuchsia.kernel/cpp/fidl/fuchsia.kernel/cpp/wire_messaging.h