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) | |
| Construct from components. More... | |
| ~profilingInformation ()=default | |
| Destructor. More... | |
| 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) |
| Update it with a new timing information. More... | |
Protected Member Functions | |
| profilingInformation () | |
| Construct null - only the master-element. More... | |
| void | setActive (bool state) const |
| Mark as being active or passive) More... | |
| Ostream & | write (Ostream &os, const bool offset=false, const scalar elapsedTime=0, const scalar childTime=0) const |
| Write the profiling times, optionally with additional values. More... | |
Friends | |
| class | profiling |
| Ostream & | operator<< (Ostream &os, const profilingInformation &info) |
Code profiling information in terms of time spent, number of calls etc.
Definition at line 60 of file profilingInformation.H.
|
protected |
Construct null - only the master-element.
Definition at line 35 of file profilingInformation.C.
| profilingInformation | ( | profilingInformation * | parent, |
| const string & | descr, | ||
| const label | id | ||
| ) |
Construct from components.
Definition at line 49 of file profilingInformation.C.
|
default |
Destructor.
|
protected |
Mark as being active or passive)
Definition at line 82 of file profilingInformation.C.
Referenced by profiling::beginTimer(), and profiling::endTimer().
|
protected |
Write the profiling times, optionally with additional values.
Use dictionary format.
Definition at line 89 of file profilingInformation.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Referenced by Foam::operator<<().
|
inline |
Definition at line 149 of file profilingInformation.H.
Referenced by profiling::create(), and profiling::unstack().
|
inline |
Definition at line 155 of file profilingInformation.H.
Referenced by profiling::unstack().
|
inline |
Definition at line 161 of file profilingInformation.H.
|
inline |
Definition at line 167 of file profilingInformation.H.
|
inline |
Definition at line 173 of file profilingInformation.H.
|
inline |
Definition at line 179 of file profilingInformation.H.
|
inline |
Definition at line 185 of file profilingInformation.H.
|
inline |
Definition at line 191 of file profilingInformation.H.
| void update | ( | const scalar | elapsedTime | ) |
Update it with a new timing information.
Definition at line 68 of file profilingInformation.C.
Referenced by profiling::endTimer().
|
friend |
Definition at line 103 of file profilingInformation.H.
|
friend |