Main Page
Namespaces
Classes
Files
File List
File Members
include
health_metric_collector
cpu_stats.h
Go to the documentation of this file.
1
/*
2
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License").
5
* You may not use this file except in compliance with the License.
6
* A copy of the License is located at
7
*
8
* http://aws.amazon.com/apache2.0
9
*
10
* or in the "license" file accompanying this file. This file is distributed
11
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
* express or implied. See the License for the specific language governing
13
* permissions and limitations under the License.
14
*/
15
16
#pragma once
17
18
#include <
health_metric_collector/cpu_data.h
>
19
20
#include <string>
21
#include <vector>
22
26
class
CPUStats
27
{
28
public
:
32
const
std::vector<CPUData> &
GetEntries
()
const
{
return
entries_
; }
33
37
void
ReadStatsCPU
();
38
39
private
:
40
std::vector<CPUData>
entries_
;
41
};
CPUStats::GetEntries
const std::vector< CPUData > & GetEntries() const
return cpu data entries.
Definition:
cpu_stats.h:32
cpu_data.h
CPUStats::ReadStatsCPU
void ReadStatsCPU()
parse /proc/stats.
Definition:
cpu_stats.cpp:23
CPUStats::entries_
std::vector< CPUData > entries_
Definition:
cpu_stats.h:40
CPUStats
Definition:
cpu_stats.h:26
health_metric_collector
Author(s): AWS RoboMaker
autogenerated on Fri Mar 5 2021 03:32:41