From 9fe4902539388ad07f599efd6fb47b0ab29b7f31 Mon Sep 17 00:00:00 2001 From: mark <mark@opencfd> Date: Thu, 19 Oct 2017 17:25:53 +0200 Subject: [PATCH] STYLE: note correct defaults for profiling --- src/OpenFOAM/global/profiling/profiling.C | 4 ++-- src/OpenFOAM/global/profiling/profiling.H | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenFOAM/global/profiling/profiling.C b/src/OpenFOAM/global/profiling/profiling.C index 2c21204418..e6a85fbefe 100644 --- a/src/OpenFOAM/global/profiling/profiling.C +++ b/src/OpenFOAM/global/profiling/profiling.C @@ -48,8 +48,7 @@ Foam::profilingInformation* Foam::profiling::find const label parentId ) { - StorageContainer::iterator iter = hash_.find(Key(descr, parentId)); - return (iter.found() ? iter() : 0); + return hash_.lookup(Key(descr, parentId), nullptr); } @@ -313,6 +312,7 @@ const Foam::Time& Foam::profiling::owner() const return owner_; } + Foam::label Foam::profiling::size() const { return stack_.size(); diff --git a/src/OpenFOAM/global/profiling/profiling.H b/src/OpenFOAM/global/profiling/profiling.H index 4b6fc49820..0059dfb2aa 100644 --- a/src/OpenFOAM/global/profiling/profiling.H +++ b/src/OpenFOAM/global/profiling/profiling.H @@ -33,9 +33,9 @@ Description profiling { active true; - cpuInfo true; + cpuInfo false; memInfo false; - sysInfo true; + sysInfo false; } \endcode or simply using all defaults: -- GitLab