Apollo 11.0
自动驾驶开放平台
apollo::resource_statistic::CpuResourceStatistic类 参考

#include <cpu_resource_statistic.h>

apollo::resource_statistic::CpuResourceStatistic 的协作图:

Public 成员函数

bool GetCpuMetric (CpuMetric *cpu_metric)
 Get CPU metric and write it into cpu_metric.
 

详细描述

在文件 cpu_resource_statistic.h 第 27 行定义.

成员函数说明

◆ GetCpuMetric()

bool apollo::resource_statistic::CpuResourceStatistic::GetCpuMetric ( CpuMetric *  cpu_metric)

Get CPU metric and write it into cpu_metric.

参数
cpu_metricCpu metric proto message
返回
If get cpu metric successfully.

在文件 cpu_resource_statistic.cc 第 35 行定义.

35 {
36 if (!GetUsage(cpu_metric)) {
37 return false;
38 }
39 if (!GetTemperature(cpu_metric)) {
40 return false;
41 }
42 return true;
43}

该类的文档由以下文件生成: