]> Creatis software - clitk.git/commitdiff
add memory usage
authordsarrut <dsarrut>
Thu, 3 Mar 2011 15:38:48 +0000 (15:38 +0000)
committerdsarrut <dsarrut>
Thu, 3 Mar 2011 15:38:48 +0000 (15:38 +0000)
vv/vvMainWindow.cxx

index f5d31815862a6cbb8b00c3b5107a4abf85234635..5266fc15f236f1490d2d0bc40b00cd6510e4f3c8 100644 (file)
@@ -322,7 +322,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   QTimer * timerMemory = new QTimer(this);
   //timerMemory->setInterval(5);
   connect(timerMemory, SIGNAL(timeout()), this, SLOT(UpdateMemoryUsage()));
-  timerMemory->start(5000);
+  timerMemory->start(2000);
 }
 //------------------------------------------------------------------------------
 
@@ -331,7 +331,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
 void vvMainWindow::UpdateMemoryUsage()
 {
   //  clitk::PrintMemory(true);
-  infoPanel->setMemoryInMb(QString::number(clitk::GetMemoryUsageInMb())+" Mb");
+  infoPanel->setMemoryInMb(QString::number(clitk::GetMemoryUsageInMb())+" MiB");
 }
 //------------------------------------------------------------------------------
 
@@ -1091,9 +1091,6 @@ void vvMainWindow::ImageInfoChanged()
     infoPanel->setSpacing(GetVectorDoubleAsString(inputSpacing));
     infoPanel->setNPixel(QString::number(NPixel)+" ("+inputSizeInBytes+")");
 
-    infoPanel->setMemoryInMb(QString::number(clitk::GetMemoryUsageInMb())+" Mb");
-
-
     landmarksPanel->SetCurrentLandmarks(mSlicerManagers[index]->GetLandmarks(),
                                         mSlicerManagers[index]->GetSlicer(0)->GetImage()->GetVTKImages().size());
     landmarksPanel->SetCurrentPath(mInputPathName.toStdString());