class Stats
Defined at line 6824 of file fidling/gen/sdk/fidl/fuchsia.kernel/fuchsia.kernel/hlcpp/fuchsia/kernel/cpp/fidl.h
Protocol for providing kernel stats. This is roughly a wrapper around zx_object_get_info for
the ZX_INFO_KMEM_STATS and ZX_INFO_CPU_STATS topics, which today require the very powerful
'Root Resource' capability to obtain. Instead of vending out that capability, programs that
just want stats should use this service instead. If for some reason the protocol fails to
retrieve stats, which will be an un-recoverable error, it will close the channel.
Public Members
static const char[] Name_
Public Methods
void ~Stats ()
void GetMemoryStats (GetMemoryStatsCallback callback)
void GetMemoryStatsExtended (GetMemoryStatsExtendedCallback callback)
void GetMemoryStatsCompression (GetMemoryStatsCompressionCallback callback)
void GetCpuStats (GetCpuStatsCallback callback)
void GetCpuLoad (int64_t duration, GetCpuLoadCallback callback)
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.