38 description_(
"application::main"),
51 const std::string& descr,
71 totalTime_ += elapsed;
73 if (id_ != parent_->
id())
75 parent_->childTime_ += elapsed;
92 const scalar elapsedTime,
93 const scalar childTimes
98 os.writeEntry(
"id", id_);
99 os.writeEntryIfDifferent(
"parentId", id_, parent().
id());
100 os.writeEntry(
"description", description());
101 os.writeEntry(
"calls", calls() + (offset ? 1 : 0));
102 os.writeEntry(
"totalTime", totalTime() + elapsedTime);
103 os.writeEntry(
"childTime", childTime() + childTimes);
104 os.writeEntryIfDifferent<
int>(
"maxMem", 0, maxMem_);
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
static const char * name(bool b) noexcept
A string representation of bool as "false" / "true".
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.