mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: reduce profiling overhead (issue #764)
- avoid clockTime in favour of clockValue. - avoid allocations when profiling is not active. - replace hashing with manual pointer lists
This commit is contained in:
@ -846,13 +846,14 @@ bool Foam::Time::run() const
|
||||
{
|
||||
// Ensure functionObjects execute on last time step
|
||||
// (and hence write uptodate functionObjectProperties)
|
||||
addProfiling(foExec, "functionObjects.execute()");
|
||||
functionObjects_.execute();
|
||||
endProfiling(foExec);
|
||||
|
||||
addProfiling(foEnd, "functionObjects.end()");
|
||||
functionObjects_.end();
|
||||
endProfiling(foEnd);
|
||||
{
|
||||
addProfiling(fo, "functionObjects.execute()");
|
||||
functionObjects_.execute();
|
||||
}
|
||||
{
|
||||
addProfiling(fo, "functionObjects.end()");
|
||||
functionObjects_.end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user