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

Constructor & Destructor Documentation

◆ ComponentData()

PMonMT::ComponentData::ComponentData ( )
inline

Definition at line 159 of file PerfMonMTUtils.h.

159  : m_call_count{0}, m_tmp_cpu{0.}, m_delta_cpu{0.}, m_tmp_wall{0.}, m_delta_wall{0.},
160  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 144 of file PerfMonMTUtils.h.

144 { m_call_count += val; }

◆ add2DeltaCPU()

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

Definition at line 147 of file PerfMonMTUtils.h.

147 { m_delta_cpu += val; }

◆ add2DeltaMalloc()

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

Definition at line 156 of file PerfMonMTUtils.h.

156 { m_delta_malloc += val; }

◆ add2DeltaVmem()

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

Definition at line 153 of file PerfMonMTUtils.h.

153 { m_delta_vmem += val; }

◆ add2DeltaWall()

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

Definition at line 150 of file PerfMonMTUtils.h.

150 { m_delta_wall += val; }

◆ addPointStart()

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

Definition at line 108 of file PerfMonMTUtils.h.

108  {
109 
110  // Timing
111  m_tmp_cpu = meas.cpu_time;
112  m_tmp_wall = meas.wall_time;
113 
114  // Memory if only necessary
115  if (!doMem) return;
116 
117  // Memory
118  m_tmp_malloc = meas.malloc;
119  m_tmp_vmem = meas.vmem;
120 
121  }

◆ addPointStop()

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

Definition at line 124 of file PerfMonMTUtils.h.

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

◆ getCallCount()

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

Definition at line 143 of file PerfMonMTUtils.h.

143 { return m_call_count; }

◆ getDeltaCPU()

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

Definition at line 146 of file PerfMonMTUtils.h.

146 { return m_delta_cpu; }

◆ getDeltaMalloc()

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

Definition at line 155 of file PerfMonMTUtils.h.

155 { return m_delta_malloc; }

◆ getDeltaVmem()

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

Definition at line 152 of file PerfMonMTUtils.h.

152 { return m_delta_vmem; }

◆ getDeltaWall()

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

Definition at line 149 of file PerfMonMTUtils.h.

149 { return m_delta_wall; }

Member Data Documentation

◆ m_call_count

uint64_t PMonMT::ComponentData::m_call_count {}

Definition at line 101 of file PerfMonMTUtils.h.

◆ m_delta_cpu

double PMonMT::ComponentData::m_delta_cpu {}

Definition at line 102 of file PerfMonMTUtils.h.

◆ m_delta_malloc

double PMonMT::ComponentData::m_delta_malloc {}

Definition at line 105 of file PerfMonMTUtils.h.

◆ m_delta_vmem

double PMonMT::ComponentData::m_delta_vmem {}

Definition at line 104 of file PerfMonMTUtils.h.

◆ m_delta_wall

double PMonMT::ComponentData::m_delta_wall {}

Definition at line 103 of file PerfMonMTUtils.h.

◆ m_tmp_cpu

double PMonMT::ComponentData::m_tmp_cpu {}

Definition at line 102 of file PerfMonMTUtils.h.

◆ m_tmp_malloc

double PMonMT::ComponentData::m_tmp_malloc {}

Definition at line 105 of file PerfMonMTUtils.h.

◆ m_tmp_vmem

double PMonMT::ComponentData::m_tmp_vmem {}

Definition at line 104 of file PerfMonMTUtils.h.

◆ m_tmp_wall

double PMonMT::ComponentData::m_tmp_wall {}

Definition at line 103 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:103
PMonMT::ComponentData::m_tmp_wall
double m_tmp_wall
Definition: PerfMonMTUtils.h:103
PMonMT::ComponentData::m_tmp_malloc
double m_tmp_malloc
Definition: PerfMonMTUtils.h:105
PMonMT::ComponentData::m_tmp_cpu
double m_tmp_cpu
Definition: PerfMonMTUtils.h:102
PMonMT::ComponentData::m_delta_vmem
double m_delta_vmem
Definition: PerfMonMTUtils.h:104
PMonMT::ComponentData::m_call_count
uint64_t m_call_count
Definition: PerfMonMTUtils.h:101
PMonMT::ComponentData::m_delta_cpu
double m_delta_cpu
Definition: PerfMonMTUtils.h:102
PMonMT::ComponentData::m_tmp_vmem
double m_tmp_vmem
Definition: PerfMonMTUtils.h:104
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
PMonMT::ComponentData::m_delta_malloc
double m_delta_malloc
Definition: PerfMonMTUtils.h:105