geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
Classes | Public Member Functions | List of all members
geopm::TracerImp Class Reference

Class used to write a trace of the telemetry and policy. More...

#include <Tracer.hpp>

Inheritance diagram for geopm::TracerImp:
Inheritance graph
[legend]
Collaboration diagram for geopm::TracerImp:
Collaboration graph
[legend]

Public Member Functions

 TracerImp (const std::string &start_time)
 TracerImp constructor. More...
 
 TracerImp (const std::string &start_time, const std::string &file_path, const std::string &hostname, bool do_trace, PlatformIO &platform_io, const PlatformTopo &platform_topo, const std::vector< std::pair< std::string, int > > &env_column)
 
virtual ~TracerImp ()=default
 TracerImp destructor, virtual. More...
 
void columns (const std::vector< std::string > &agent_cols, const std::vector< std::function< std::string(double)> > &agent_formats) override
 Set up default columns and add columns to be. More...
 
void update (const std::vector< double > &agent_signals) override
 Update the trace with telemetry samples and region info. The Tracer samples values for default and environment columns and the remaining signal values are provided by the Agent. More...
 
void flush (void) override
 Write the remaining trace data to the file and stop tracing. More...
 
- Public Member Functions inherited from geopm::Tracer
 Tracer ()=default
 
virtual ~Tracer ()=default
 

Detailed Description

Class used to write a trace of the telemetry and policy.

Constructor & Destructor Documentation

◆ TracerImp() [1/2]

geopm::TracerImp::TracerImp ( const std::string &  start_time)

TracerImp constructor.

◆ TracerImp() [2/2]

geopm::TracerImp::TracerImp ( const std::string &  start_time,
const std::string &  file_path,
const std::string &  hostname,
bool  do_trace,
PlatformIO &  platform_io,
const PlatformTopo &  platform_topo,
const std::vector< std::pair< std::string, int > > &  env_column 
)

◆ ~TracerImp()

virtual geopm::TracerImp::~TracerImp ( )
virtualdefault

TracerImp destructor, virtual.

Member Function Documentation

◆ columns()

void geopm::TracerImp::columns ( const std::vector< std::string > &  agent_cols,
const std::vector< std::function< std::string(double)> > &  agent_formats 
)
overridevirtual

Set up default columns and add columns to be.

Implements geopm::Tracer.

◆ flush()

void geopm::TracerImp::flush ( void  )
overridevirtual

Write the remaining trace data to the file and stop tracing.

Implements geopm::Tracer.

◆ update()

void geopm::TracerImp::update ( const std::vector< double > &  agent_signals)
overridevirtual

Update the trace with telemetry samples and region info. The Tracer samples values for default and environment columns and the remaining signal values are provided by the Agent.

Parameters
[in]agent_signalsValues for signals provided by the agent.

Implements geopm::Tracer.


The documentation for this class was generated from the following files: