Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMemoryProbe.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMemoryProbe.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-26 15:20:21 $
00007   Version:   $Revision: 1.2 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkMemoryProbe_h
00018 #define __itkMemoryProbe_h
00019 
00020 #include "itkConfigure.h"
00021 #include "itkResourceProbe.h"
00022 #include "itkMemoryUsageObserver.h"
00023 
00024 namespace itk 
00025 {
00026  
00038 class ITKCommon_EXPORT MemoryProbe
00039   : public ResourceProbe<long, double>
00040 {
00041 public:
00042   
00043   MemoryProbe();
00044   ~MemoryProbe();
00045 
00047   typedef long  MemoryLoadType;
00048 
00050   typedef double  MeanMemoryLoadType;
00051 
00052 protected: 
00053   virtual MemoryLoadType GetInstantValue(void)const;
00054 
00055 private:
00056   mutable MemoryUsageObserver m_MemoryObserver;
00057 };
00058 
00059 
00060 } // end namespace itk
00061 
00062 #endif //__itkMemoryProbe_h
00063 

Generated at Thu May 28 10:46:58 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000