[Insight-developers] MemoryProbe doesn't work at all?

Williams, Norman K norman-k-williams at uiowa.edu
Tue Jun 21 11:39:52 EDT 2011


There's this bug report: http://www.itk.org/Bug/view.php?id=10252

And here's the patch I wrote to address it: http://review.source.kitware.com/#change,1958



And the problem is that memory usage probes boil down to calling getrusage. Even after allocating a megabyte array (and touching every byte to force actual allocation) getrusage reports zero for resident memory usage.



I've only tested this on Mac OS X so far, but I suspect that it will fail everywhere except maybe Windows.  So the question is if this never worked, and never had any coverage or testing, why is the memoryprobe stuff even in ITK?


________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110621/cd02374c/attachment.htm>


More information about the Insight-developers mailing list