class CpuStatsFetcher
Defined at line 20 of file ../../src/cobalt/bin/system-metrics/cpu_stats_fetcher.h
An abstrace interface for cpu stats fetching from various
resources
Public Methods
FetchCpuResult FetchCpuPercentage (double * cpu_percentage)
Get average CPU percentage used over all CPU cores since
the last time this function is called.
If it is not the first time this function is called, the return value will be Ok and
cpu_percentage will be populated with the calculated CPU usage since the last call. If it is
the first time this function is called, the return value will be FirstDataPoint and
cpu_percentage will be unchanged. If an error occurs, the return value will be Error.
void ~CpuStatsFetcher ()
Defined at line 22 of file ../../src/cobalt/bin/system-metrics/cpu_stats_fetcher.h