#include <CustomBenchmark.h>
Definition at line 30 of file CustomBenchmark.h.
◆ CustomBenchmark() [1/2]
| PMonUtils::CustomBenchmark::CustomBenchmark |
( |
unsigned | nmax | ) |
|
◆ ~CustomBenchmark()
| PMonUtils::CustomBenchmark::~CustomBenchmark |
( |
| ) |
|
◆ CustomBenchmark() [2/2]
◆ begin()
| void PMonUtils::CustomBenchmark::begin |
( |
unsigned | id | ) |
|
|
inline |
◆ clock_nooverflow()
| int64_t PMonUtils::CustomBenchmark::clock_nooverflow |
( |
| ) |
|
|
inlinestaticprivate |
Definition at line 89 of file CustomBenchmark.h.
89 {
90
91
92
93
94
95
96
97
98 assert(std::numeric_limits<clock_t>::is_integer);
99 if (sizeof(clock_t)>=sizeof(int64_t))
100 return clock();
101
102
103 static clock_t last=clock();
106 if (c<last)
107 offset+=int64_t(std::numeric_limits<unsigned>::max())-int64_t(std::numeric_limits<unsigned>::min());
110 }
◆ end()
| void PMonUtils::CustomBenchmark::end |
( |
int | count = 1 | ) |
|
|
inline |
Definition at line 73 of file CustomBenchmark.h.
74 {
79 }
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ getData()
| void PMonUtils::CustomBenchmark::getData |
( |
unsigned | id, |
|
|
uint64_t & | count, |
|
|
double & | time_ms ) const |
|
inline |
Definition at line 81 of file CustomBenchmark.h.
82 {
86 time_ms =
data->time_spent * (1000.0/CLOCKS_PER_SEC);
87 }
char data[hepevt_bytes_allocation_ATLAS]
◆ nMax()
| unsigned PMonUtils::CustomBenchmark::nMax |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ size()
| unsigned PMonUtils::CustomBenchmark::size |
( |
| ) |
const |
|
inline |
◆ m_data
| Data* PMonUtils::CustomBenchmark::m_data |
|
private |
◆ m_data_current
| Data* PMonUtils::CustomBenchmark::m_data_current |
|
private |
◆ m_nmax
| const unsigned PMonUtils::CustomBenchmark::m_nmax |
|
private |
The documentation for this class was generated from the following files: