diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C index 234c9d85b3..25e9905ac5 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C @@ -78,6 +78,8 @@ Note #include "cellSet.H" #include "fvMeshSubset.H" +#include "memInfo.H" + using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -153,6 +155,11 @@ int main(int argc, char *argv[]) const bool binary = !args.optionFound("ascii"); const bool nodeValues = args.optionFound("nodeValues"); + cpuTime timer; + memInfo mem; + Info<< "Initial memory " + << mem.update().size() << " kB" << endl; + #include "createTime.H" instantList Times = timeSelector::select0(runTime, args); @@ -743,6 +750,10 @@ int main(int argc, char *argv[]) } } } + + Info<< "Wrote in " + << timer.cpuTimeIncrement() << " s, " + << mem.update().size() << " kB" << endl; } #include "ensightCaseTail.H" @@ -752,7 +763,9 @@ int main(int argc, char *argv[]) delete ensightCaseFilePtr; } - Info<< "End\n" << endl; + Info<< "\nEnd: " + << timer.elapsedCpuTime() << " s, " + << mem.update().peak() << " kB (peak)\n" << endl; return 0; } diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/foamToEnsightParts.C b/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/foamToEnsightParts.C index 0a3cdf6509..ff67c2758d 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/foamToEnsightParts.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsightParts/foamToEnsightParts.C @@ -71,6 +71,8 @@ Note #include "ensightParts.H" #include "ensightOutputFunctions.H" +#include "memInfo.H" + using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -132,6 +134,12 @@ int main(int argc, char *argv[]) const char* geometryName = "geometry"; #include "setRootCase.H" + + cpuTime timer; + memInfo mem; + Info<< "Initial memory " + << mem.update().size() << " kB" << endl; + #include "createTime.H" // get times list @@ -468,11 +476,17 @@ int main(int argc, char *argv[]) // remember the time index cloudTimesUsed[cloudName].append(timeIndex); } + + Info<< "Wrote in " + << timer.cpuTimeIncrement() << " s, " + << mem.update().size() << " kB" << endl; } #include "ensightOutputCase.H" - Info<< "\nEnd\n"<< endl; + Info<< "\nEnd: " + << timer.elapsedCpuTime() << " s, " + << mem.update().peak() << " kB (peak)\n" << endl; return 0; } diff --git a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C index b4c26b21cf..fa46eeb5ce 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C +++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C @@ -160,6 +160,7 @@ Note #include "surfaceMeshWriter.H" #include "writeSurfFields.H" +#include "memInfo.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -319,6 +320,12 @@ int main(int argc, char *argv[]) ); #include "setRootCase.H" + + cpuTime timer; + memInfo mem; + Info<< "Initial memory " + << mem.update().size() << " kB" << endl; + #include "createTime.H" const bool doWriteInternal = !args.optionFound("noInternal"); @@ -429,10 +436,13 @@ int main(int argc, char *argv[]) mkDir(fvPath); - // Mesh wrapper; does subsetting and decomposition vtkMesh vMesh(mesh, cellSetName); + Info<< "VTK mesh topology: " + << timer.cpuTimeIncrement() << " s, " + << mem.update().size() << " kB" << endl; + // Scan for all possible lagrangian clouds HashSet allCloudDirs; @@ -1242,6 +1252,10 @@ int main(int argc, char *argv[]) writer.writeParcelHeader(0); } } + + Info<< "Wrote in " + << timer.cpuTimeIncrement() << " s, " + << mem.update().size() << " kB" << endl; } @@ -1302,7 +1316,9 @@ int main(int argc, char *argv[]) } } - Info<< "End\n" << endl; + Info<< "\nEnd: " + << timer.elapsedCpuTime() << " s, " + << mem.update().peak() << " kB (peak)\n" << endl; return 0; }