Adding profiling in additional places

--HG--
branch : bgschaid/minorAdditionsBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-08-12 19:25:59 +02:00
parent c2937515ba
commit 4aaa1d47e6
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -32,6 +32,8 @@ License
#include "Time.H"
#include "OFstream.H"
#include "Profiling.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class ParticleType>
@ -125,6 +127,8 @@ template<class ParticleType>
template<class TrackingData>
void Foam::Cloud<ParticleType>::move(TrackingData& td)
{
addProfile2(moveProfile,"Cloud<ParticleType>::move_"+this->name());
const globalMeshData& pData = polyMesh_.globalData();
const labelList& processorPatches = pData.processorPatches();
const labelList& processorPatchIndices = pData.processorPatchIndices();