Commit 96edd9a1 authored by hrchilds's avatar hrchilds
Browse files

Add memory usage tracking to debug logs.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@3360 18c085ea-50e0-402c-830e-de6fd14e8384
parent ddaa608a
......@@ -54,6 +54,7 @@
#include <ImproperUseException.h>
#include <NoInputException.h>
#include <TimingsManager.h>
#include <Utility.h>
#include <visitstream.h>
......@@ -197,6 +198,14 @@ avtTerminatingSink::Execute(avtContract_p contract)
int t = visitTimer->StartTimer();
input->Update(contract);
visitTimer->StopTimer(t, "First pipeline update.");
int size = -1, rss = -1;
GetMemorySize(size, rss);
if (size > 0 && rss > 0)
{
debug3 << "Memory after first execution was: size = " << size
<< ", rss = " << rss << endl;
}
}
//
......@@ -218,6 +227,14 @@ avtTerminatingSink::Execute(avtContract_p contract)
visitTimer->StopTimer(t, msg);
dob->Merge(*input);
iter++;
int size = -1, rss = -1;
GetMemorySize(size, rss);
if (size > 0 && rss > 0)
{
debug3 << "Memory after iteration " << iter
<< " was: size = " << size << ", rss = " << rss << endl;
}
}
input->Copy(*dob);
int t2 = visitTimer->StartTimer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment