From: dsarrut Date: Thu, 3 Mar 2011 15:38:48 +0000 (+0000) Subject: add memory usage X-Git-Tag: v1.2.0~201 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=753681cc3f201f6f79b5f6658141b0236a6d0e5b;p=clitk.git add memory usage --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index f5d3181..5266fc1 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -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());