geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
ValidateRecord.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef VALIDATERECORD_HPP_INCLUDE
7 #define VALIDATERECORD_HPP_INCLUDE
8 
9 #include "ApplicationSampler.hpp"
10 #include "geopm_time.h"
11 
12 namespace geopm
13 {
19  {
20  public:
21  ValidateRecord(void);
23  virtual ~ValidateRecord() = default;
28  void check(const record_s &record);
29  private:
30  bool m_is_empty;
31  geopm_time_s m_time;
32  int m_process;
33  uint64_t m_epoch_count;
34  uint64_t m_region_hash;
35  };
36 }
37 
38 #endif
Checks validity and self consistency of a record stream from a single process. This check is applied ...
Definition: ValidateRecord.hpp:19
void check(const record_s &record)
Check that the record is valid and self consistent with previously checked records.
Definition: ValidateRecord.cpp:38
virtual ~ValidateRecord()=default
Default destructor.
ValidateRecord(void)
Definition: ValidateRecord.cpp:19
Definition: Accumulator.cpp:12
Record of an application event.
Definition: record.hpp:61