summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-13 00:03:20 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-13 00:03:20 +0200
commit31bf2ba85b17b9085681eb4fdaca940e6f4c17e3 (patch)
treea13b93e2ce607aa059e060e1ebaf2ba674ae1a4e /src/common.hpp
parenta71ed71be94a9fec8660ea0aa060ab9fcf7f860a (diff)
Show RSS on Linux.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 3d7483d..7d3a1f9 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -28,6 +28,10 @@ along with Minitrem. If not, see <http://www.gnu.org/licenses/>.
#include <SFML/Audio.hpp>
#include "math.hpp"
+#ifdef __linux
+#define CONFIG_SHOW_RSS
+#endif
+
#define COUNT(A) (sizeof(A) / sizeof((A)[0]))
extern bool debug_draw_cmodels;
@@ -63,6 +67,10 @@ public:
extern freq_counter_t fc_render;
extern freq_counter_t fc_game;
+#ifdef CONFIG_SHOW_RSS
+size_t sys_get_rss(void);
+#endif
+
namespace procgen {
class prng_t {
uint32_t state = 0;