DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
memoryinfo.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 
22 #ifndef MEMORYINFO_H
23 #define MEMORYINFO_H
24 
25 #include <commons_global.h>
26 #include <stddef.h>
27 
28 class MemoryInfoImpl;
29 
31 {
32 public:
33  MemoryInfo();
34 
35  size_t rss() const { return mRss_kb; }
36  size_t peakRss() const { return mPeakRss_kb; }
37 
38  bool update();
39 protected:
40  size_t mRss_kb;
41  size_t mPeakRss_kb;
42 };
43 
44 #endif // MEMORYINFO_H
size_t mPeakRss_kb
Definition: memoryinfo.h:41
size_t mRss_kb
Definition: memoryinfo.h:40
Definition: memoryinfo.h:30
size_t rss() const
Definition: memoryinfo.h:35
size_t peakRss() const
Definition: memoryinfo.h:36
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23