Commit 3320da01 authored by berenger-bramas's avatar berenger-bramas

Insert the mem stat inside the test.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@316 2616d619-271b-44dc-8df4-d4a8f33a7222
parent a4e2ccd1
......@@ -147,6 +147,14 @@ class TestFmbDirect : public FUTester<TestFmbDirect> {
assert(fz < MaximumDiff);
}
void After() {
if( FMemStats::controler.isUsed() ){
std::cout << "Memory used at the end " << FMemStats::controler.getCurrentAllocated() << " Bytes (" << FMemStats::controler.getCurrentAllocatedMB() << "MB)\n";
std::cout << "Max memory used " << FMemStats::controler.getMaxAllocated() << " Bytes (" << FMemStats::controler.getMaxAllocatedMB() << "MB)\n";
std::cout << "Total memory used " << FMemStats::controler.getTotalAllocated() << " Bytes (" << FMemStats::controler.getTotalAllocatedMB() << "MB)\n";
}
}
// set test
void SetTests(){
AddTest(&TestFmbDirect::TestDirect,"Test Simu and with direct");
......
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