From 4aaa1d47e6da2db664266b670034a4ac4d970932 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Mon, 12 Aug 2013 19:25:59 +0200 Subject: [PATCH] Adding profiling in additional places --HG-- branch : bgschaid/minorAdditionsBranch --- src/OpenFOAM/db/Time/TimeIO.C | 4 ++++ src/lagrangian/basic/Cloud/Cloud.C | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/OpenFOAM/db/Time/TimeIO.C b/src/OpenFOAM/db/Time/TimeIO.C index 34163051e..4bedbaa0c 100644 --- a/src/OpenFOAM/db/Time/TimeIO.C +++ b/src/OpenFOAM/db/Time/TimeIO.C @@ -281,8 +281,12 @@ bool Foam::Time::writeObject IOstream::compressionType cmp ) const { + addProfile2(getCalled,"Foam::Time::writeObject"); + if (outputTime()) { + addProfile2(actualOutput,"Foam::Time::writeObject - outputTime"); + IOdictionary timeDict ( IOobject diff --git a/src/lagrangian/basic/Cloud/Cloud.C b/src/lagrangian/basic/Cloud/Cloud.C index 376610560..30aa3f8bd 100644 --- a/src/lagrangian/basic/Cloud/Cloud.C +++ b/src/lagrangian/basic/Cloud/Cloud.C @@ -32,6 +32,8 @@ License #include "Time.H" #include "OFstream.H" +#include "Profiling.H" + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template @@ -125,6 +127,8 @@ template template void Foam::Cloud::move(TrackingData& td) { + addProfile2(moveProfile,"Cloud::move_"+this->name()); + const globalMeshData& pData = polyMesh_.globalData(); const labelList& processorPatches = pData.processorPatches(); const labelList& processorPatchIndices = pData.processorPatchIndices();