]> Creatis software - clitk.git/blob - common/clitkMemoryUsage.h
changes in license header
[clitk.git] / common / clitkMemoryUsage.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17   ===========================================================================**/
18
19 #ifndef CLITKMEMORYUSAGE_H
20 #define CLITKMEMORYUSAGE_H
21
22 // clitk include
23 #include "clitkConfiguration.h"
24
25 // statgrab include
26 #if CLITK_MEMORY_INFO == 1
27 #include <statgrab.h>
28 #endif
29
30 //--------------------------------------------------------------------
31 namespace clitk {
32
33   void PrintMemory(bool verbose=true, std::string s="") ;
34   double GetMemoryUsageInMb() ;
35
36 }  // end namespace
37 //--------------------------------------------------------------------
38
39 #endif /* end #define CLITKMEMORYUSAGE_H */
40