for collecting statistics over multiple files.
More...
|
void | add (const ReadStats &b) |
| add other stats object.
|
|
void | addFromFile (const TFile *f) |
| add current statistics from TFile object.
|
|
std::string | getString () const |
| string suitable for printing.
|
|
|
long | calls {0} |
| number of read calls.
|
|
long | bytesRead {0} |
| total number of bytes read.
|
|
long | bytesReadExtra {0} |
| what TFile thinks was the overhead.
|
|
for collecting statistics over multiple files.
Definition at line 188 of file RootInputModule.h.
◆ add()
add other stats object.
Definition at line 193 of file RootInputModule.h.
194 {
195 calls += b.calls;
196 bytesRead += b.bytesRead;
197 bytesReadExtra += b.bytesReadExtra;
198 }
◆ addFromFile()
void addFromFile |
( |
const TFile * | f | ) |
|
|
inline |
add current statistics from TFile object.
Definition at line 200 of file RootInputModule.h.
201 {
202 calls += f->GetReadCalls();
203 bytesRead += f->GetBytesRead();
204 bytesReadExtra += f->GetBytesReadExtra();
205 }
◆ getString()
std::string getString |
( |
| ) |
const |
|
inline |
string suitable for printing.
Definition at line 207 of file RootInputModule.h.
208 {
209 std::string s;
210 s += "read: " + std::to_string(bytesRead) + " Bytes";
211 s += ", overhead: " + std::to_string(bytesReadExtra) + " Bytes";
212 s += ", Read() calls: " + std::to_string(calls);
213 return s;
214 }
◆ bytesRead
◆ bytesReadExtra
◆ calls
The documentation for this struct was generated from the following file: