Code profiling information in terms of time spent, number of calls etc. More...
Public Member Functions | |
profilingInformation (profilingInformation *parent, const string &descr, const label id) | |
~profilingInformation ()=default | |
label | id () const |
const string & | description () const |
profilingInformation & | parent () const |
label | calls () const |
scalar | totalTime () const |
scalar | childTime () const |
int | maxMem () const |
bool | active () const |
void | update (const scalar elapsedTime) |
Ostream & | write (Ostream &os, const bool offset=false, const scalar elapsedTime=0, const scalar childTime=0) const |
Protected Member Functions | |
profilingInformation () | |
void | setActive (bool state) const |
profilingInformation (const profilingInformation &)=delete | |
void | operator= (const profilingInformation &)=delete |
Friends | |
class | profiling |
Code profiling information in terms of time spent, number of calls etc.
Definition at line 52 of file profilingInformation.H.
|
protected |
Definition at line 28 of file profilingInformation.C.
|
protecteddelete |
profilingInformation | ( | profilingInformation * | parent, |
const string & | descr, | ||
const label | id | ||
) |
Definition at line 42 of file profilingInformation.C.
|
default |
|
protected |
Definition at line 75 of file profilingInformation.C.
Referenced by profiling::beginTimer(), and profiling::endTimer().
|
protecteddelete |
|
inline |
Definition at line 128 of file profilingInformation.H.
Referenced by profiling::create(), and profiling::unstack().
|
inline |
Definition at line 133 of file profilingInformation.H.
Referenced by profiling::unstack().
|
inline |
Definition at line 138 of file profilingInformation.H.
|
inline |
Definition at line 143 of file profilingInformation.H.
|
inline |
Definition at line 148 of file profilingInformation.H.
|
inline |
Definition at line 153 of file profilingInformation.H.
|
inline |
Definition at line 158 of file profilingInformation.H.
|
inline |
Definition at line 163 of file profilingInformation.H.
void update | ( | const scalar | elapsedTime | ) |
Definition at line 61 of file profilingInformation.C.
Referenced by profiling::endTimer().
Foam::Ostream & write | ( | Ostream & | os, |
const bool | offset = false , |
||
const scalar | elapsedTime = 0 , |
||
const scalar | childTime = 0 |
||
) | const |
Definition at line 82 of file profilingInformation.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), Switch::name(), os(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Referenced by Foam::operator<<().
|
friend |
Definition at line 87 of file profilingInformation.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.