Skip to content
Snippets Groups Projects
Commit 9fe49025 authored by mark's avatar mark Committed by Mark OLESEN
Browse files

STYLE: note correct defaults for profiling

parent 90c0be38
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,7 @@ Foam::profilingInformation* Foam::profiling::find ...@@ -48,8 +48,7 @@ Foam::profilingInformation* Foam::profiling::find
const label parentId const label parentId
) )
{ {
StorageContainer::iterator iter = hash_.find(Key(descr, parentId)); return hash_.lookup(Key(descr, parentId), nullptr);
return (iter.found() ? iter() : 0);
} }
...@@ -313,6 +312,7 @@ const Foam::Time& Foam::profiling::owner() const ...@@ -313,6 +312,7 @@ const Foam::Time& Foam::profiling::owner() const
return owner_; return owner_;
} }
Foam::label Foam::profiling::size() const Foam::label Foam::profiling::size() const
{ {
return stack_.size(); return stack_.size();
......
...@@ -33,9 +33,9 @@ Description ...@@ -33,9 +33,9 @@ Description
profiling profiling
{ {
active true; active true;
cpuInfo true; cpuInfo false;
memInfo false; memInfo false;
sysInfo true; sysInfo false;
} }
\endcode \endcode
or simply using all defaults: or simply using all defaults:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment