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 104 of file PerfMonMTUtils.h.

Constructor & Destructor Documentation

◆ ComponentData()

PMonMT::ComponentData::ComponentData ( )
inline

Definition at line 165 of file PerfMonMTUtils.h.

165  : m_call_count{0}, m_tmp_cpu{0.}, m_delta_cpu{0.}, m_tmp_wall{0.}, m_delta_wall{0.},
166  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 150 of file PerfMonMTUtils.h.

150 { m_call_count += val; }

◆ add2DeltaCPU()

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

Definition at line 153 of file PerfMonMTUtils.h.

153 { m_delta_cpu += val; }

◆ add2DeltaMalloc()

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

Definition at line 162 of file PerfMonMTUtils.h.

162 { m_delta_malloc += val; }

◆ add2DeltaVmem()

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

Definition at line 159 of file PerfMonMTUtils.h.

159 { m_delta_vmem += val; }

◆ add2DeltaWall()

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

Definition at line 156 of file PerfMonMTUtils.h.

156 { m_delta_wall += val; }

◆ addPointStart()

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

Definition at line 114 of file PerfMonMTUtils.h.

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

◆ addPointStop()

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

Definition at line 130 of file PerfMonMTUtils.h.

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

◆ getCallCount()

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

Definition at line 149 of file PerfMonMTUtils.h.

149 { return m_call_count; }

◆ getDeltaCPU()

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

Definition at line 152 of file PerfMonMTUtils.h.

152 { return m_delta_cpu; }

◆ getDeltaMalloc()

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

Definition at line 161 of file PerfMonMTUtils.h.

161 { return m_delta_malloc; }

◆ getDeltaVmem()

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

Definition at line 158 of file PerfMonMTUtils.h.

158 { return m_delta_vmem; }

◆ getDeltaWall()

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

Definition at line 155 of file PerfMonMTUtils.h.

155 { return m_delta_wall; }

Member Data Documentation

◆ m_call_count

uint64_t PMonMT::ComponentData::m_call_count {}

Definition at line 107 of file PerfMonMTUtils.h.

◆ m_delta_cpu

double PMonMT::ComponentData::m_delta_cpu {}

Definition at line 108 of file PerfMonMTUtils.h.

◆ m_delta_malloc

double PMonMT::ComponentData::m_delta_malloc {}

Definition at line 111 of file PerfMonMTUtils.h.

◆ m_delta_vmem

double PMonMT::ComponentData::m_delta_vmem {}

Definition at line 110 of file PerfMonMTUtils.h.

◆ m_delta_wall

double PMonMT::ComponentData::m_delta_wall {}

Definition at line 109 of file PerfMonMTUtils.h.

◆ m_tmp_cpu

double PMonMT::ComponentData::m_tmp_cpu {}

Definition at line 108 of file PerfMonMTUtils.h.

◆ m_tmp_malloc

double PMonMT::ComponentData::m_tmp_malloc {}

Definition at line 111 of file PerfMonMTUtils.h.

◆ m_tmp_vmem

double PMonMT::ComponentData::m_tmp_vmem {}

Definition at line 110 of file PerfMonMTUtils.h.

◆ m_tmp_wall

double PMonMT::ComponentData::m_tmp_wall {}

Definition at line 109 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:109
PMonMT::ComponentData::m_tmp_wall
double m_tmp_wall
Definition: PerfMonMTUtils.h:109
PMonMT::ComponentData::m_tmp_malloc
double m_tmp_malloc
Definition: PerfMonMTUtils.h:111
PMonMT::ComponentData::m_tmp_cpu
double m_tmp_cpu
Definition: PerfMonMTUtils.h:108
PMonMT::ComponentData::m_delta_vmem
double m_delta_vmem
Definition: PerfMonMTUtils.h:110
PMonMT::ComponentData::m_call_count
uint64_t m_call_count
Definition: PerfMonMTUtils.h:107
PMonMT::ComponentData::m_delta_cpu
double m_delta_cpu
Definition: PerfMonMTUtils.h:108
PMonMT::ComponentData::m_tmp_vmem
double m_tmp_vmem
Definition: PerfMonMTUtils.h:110
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
PMonMT::ComponentData::m_delta_malloc
double m_delta_malloc
Definition: PerfMonMTUtils.h:111