ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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

Definition at line 164 of file PerfMonMTUtils.h.

164  : m_call_count{0}, m_tmp_cpu{0.}, m_delta_cpu{0.}, m_tmp_wall{0.}, m_delta_wall{0.},
165  m_tmp_vmem{0.}, m_delta_vmem{0.}, m_tmp_malloc{0.}, m_delta_malloc{0.} { }

Member Function Documentation

◆ add2CallCount()

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

Definition at line 149 of file PerfMonMTUtils.h.

149 { m_call_count += val; }

◆ 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.

◆ m_delta_cpu

double PMonMT::ComponentData::m_delta_cpu {}

Definition at line 107 of file PerfMonMTUtils.h.

◆ m_delta_malloc

double PMonMT::ComponentData::m_delta_malloc {}

Definition at line 110 of file PerfMonMTUtils.h.

◆ m_delta_vmem

double PMonMT::ComponentData::m_delta_vmem {}

Definition at line 109 of file PerfMonMTUtils.h.

◆ m_delta_wall

double PMonMT::ComponentData::m_delta_wall {}

Definition at line 108 of file PerfMonMTUtils.h.

◆ m_tmp_cpu

double PMonMT::ComponentData::m_tmp_cpu {}

Definition at line 107 of file PerfMonMTUtils.h.

◆ m_tmp_malloc

double PMonMT::ComponentData::m_tmp_malloc {}

Definition at line 110 of file PerfMonMTUtils.h.

◆ m_tmp_vmem

double PMonMT::ComponentData::m_tmp_vmem {}

Definition at line 109 of file PerfMonMTUtils.h.

◆ m_tmp_wall

double PMonMT::ComponentData::m_tmp_wall {}

Definition at line 108 of file PerfMonMTUtils.h.


The documentation for this struct was generated from the following file:
PMonMT::ComponentData::m_delta_wall
double m_delta_wall
Definition: PerfMonMTUtils.h:108
PMonMT::ComponentData::m_tmp_wall
double m_tmp_wall
Definition: PerfMonMTUtils.h:108
PMonMT::ComponentData::m_tmp_malloc
double m_tmp_malloc
Definition: PerfMonMTUtils.h:110
PMonMT::ComponentData::m_tmp_cpu
double m_tmp_cpu
Definition: PerfMonMTUtils.h:107
PMonMT::ComponentData::m_delta_vmem
double m_delta_vmem
Definition: PerfMonMTUtils.h:109
PMonMT::ComponentData::m_call_count
uint64_t m_call_count
Definition: PerfMonMTUtils.h:106
PMonMT::ComponentData::m_delta_cpu
double m_delta_cpu
Definition: PerfMonMTUtils.h:107
PMonMT::ComponentData::m_tmp_vmem
double m_tmp_vmem
Definition: PerfMonMTUtils.h:109
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
PMonMT::ComponentData::m_delta_malloc
double m_delta_malloc
Definition: PerfMonMTUtils.h:110