ATLAS Offline Software
Loading...
Searching...
No Matches
PMonMT::ComponentData Struct Reference

#include <PerfMonMTUtils.h>

Collaboration diagram for PMonMT::ComponentData:

Public Member Functions

void addPointStart (const ComponentMeasurement &meas, const bool doMem=false)
void addPointStop (const ComponentMeasurement &meas, const bool doMem=false)
uint64_t getCallCount () const
void add2CallCount (uint64_t val)
double getDeltaCPU () const
void add2DeltaCPU (double val)
double getDeltaWall () const
void add2DeltaWall (double val)
double getDeltaVmem () const
void add2DeltaVmem (double val)
double getDeltaMalloc () const
void add2DeltaMalloc (double val)
 ComponentData ()

Public Attributes

uint64_t m_call_count {}
double m_tmp_cpu {}
double m_delta_cpu {}
double m_tmp_wall {}
double m_delta_wall {}
double m_tmp_vmem {}
double m_delta_vmem {}
double m_tmp_malloc {}
double m_delta_malloc {}

Detailed Description

Definition at line 103 of file PerfMonMTUtils.h.

Constructor & Destructor Documentation

◆ ComponentData()

PMonMT::ComponentData::ComponentData ( )
inline

Member Function Documentation

◆ add2CallCount()

void PMonMT::ComponentData::add2CallCount ( uint64_t val)
inline

◆ add2DeltaCPU()

void PMonMT::ComponentData::add2DeltaCPU ( double val)
inline

Definition at line 152 of file PerfMonMTUtils.h.

152{ m_delta_cpu += val; }

◆ add2DeltaMalloc()

void PMonMT::ComponentData::add2DeltaMalloc ( double val)
inline

Definition at line 161 of file PerfMonMTUtils.h.

161{ m_delta_malloc += val; }

◆ add2DeltaVmem()

void PMonMT::ComponentData::add2DeltaVmem ( double val)
inline

Definition at line 158 of file PerfMonMTUtils.h.

158{ m_delta_vmem += val; }

◆ add2DeltaWall()

void PMonMT::ComponentData::add2DeltaWall ( double val)
inline

Definition at line 155 of file PerfMonMTUtils.h.

155{ m_delta_wall += val; }

◆ addPointStart()

void PMonMT::ComponentData::addPointStart ( const ComponentMeasurement & meas,
const bool doMem = false )
inline

Definition at line 113 of file PerfMonMTUtils.h.

113 {
114
115 // Timing
116 m_tmp_cpu = meas.cpu_time;
117 m_tmp_wall = meas.wall_time;
118
119 // Memory if only necessary
120 if (!doMem) return;
121
122 // Memory
123 m_tmp_malloc = meas.malloc;
124 m_tmp_vmem = meas.vmem;
125
126 }

◆ addPointStop()

void PMonMT::ComponentData::addPointStop ( const ComponentMeasurement & meas,
const bool doMem = false )
inline

Definition at line 129 of file PerfMonMTUtils.h.

129 {
130
131 // Call count
132 m_call_count++;
133
134 // Timing
135 m_delta_cpu += meas.cpu_time - m_tmp_cpu;
136 m_delta_wall += meas.wall_time - m_tmp_wall;
137
138 // Memory if only necessary
139 if (!doMem) return;
140
141 // Memory
142 m_delta_malloc += meas.malloc - m_tmp_malloc;
143 m_delta_vmem += meas.vmem - m_tmp_vmem;
144
145 }

◆ getCallCount()

uint64_t PMonMT::ComponentData::getCallCount ( ) const
inline

Definition at line 148 of file PerfMonMTUtils.h.

148{ return m_call_count; }

◆ getDeltaCPU()

double PMonMT::ComponentData::getDeltaCPU ( ) const
inline

Definition at line 151 of file PerfMonMTUtils.h.

151{ return m_delta_cpu; }

◆ getDeltaMalloc()

double PMonMT::ComponentData::getDeltaMalloc ( ) const
inline

Definition at line 160 of file PerfMonMTUtils.h.

160{ return m_delta_malloc; }

◆ getDeltaVmem()

double PMonMT::ComponentData::getDeltaVmem ( ) const
inline

Definition at line 157 of file PerfMonMTUtils.h.

157{ return m_delta_vmem; }

◆ getDeltaWall()

double PMonMT::ComponentData::getDeltaWall ( ) const
inline

Definition at line 154 of file PerfMonMTUtils.h.

154{ return m_delta_wall; }

Member Data Documentation

◆ m_call_count

uint64_t PMonMT::ComponentData::m_call_count {}

Definition at line 106 of file PerfMonMTUtils.h.

106{};

◆ m_delta_cpu

double PMonMT::ComponentData::m_delta_cpu {}

Definition at line 107 of file PerfMonMTUtils.h.

107{}, m_delta_cpu{};

◆ m_delta_malloc

double PMonMT::ComponentData::m_delta_malloc {}

Definition at line 110 of file PerfMonMTUtils.h.

110{}, m_delta_malloc{};

◆ m_delta_vmem

double PMonMT::ComponentData::m_delta_vmem {}

Definition at line 109 of file PerfMonMTUtils.h.

109{}, m_delta_vmem{};

◆ m_delta_wall

double PMonMT::ComponentData::m_delta_wall {}

Definition at line 108 of file PerfMonMTUtils.h.

108{}, m_delta_wall{};

◆ m_tmp_cpu

double PMonMT::ComponentData::m_tmp_cpu {}

Definition at line 107 of file PerfMonMTUtils.h.

107{}, m_delta_cpu{};

◆ m_tmp_malloc

double PMonMT::ComponentData::m_tmp_malloc {}

Definition at line 110 of file PerfMonMTUtils.h.

110{}, m_delta_malloc{};

◆ m_tmp_vmem

double PMonMT::ComponentData::m_tmp_vmem {}

Definition at line 109 of file PerfMonMTUtils.h.

109{}, m_delta_vmem{};

◆ m_tmp_wall

double PMonMT::ComponentData::m_tmp_wall {}

Definition at line 108 of file PerfMonMTUtils.h.

108{}, m_delta_wall{};

The documentation for this struct was generated from the following file: