From 31bf2ba85b17b9085681eb4fdaca940e6f4c17e3 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 13 Apr 2018 00:03:20 +0200 Subject: Show RSS on Linux. --- src/common.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common.hpp') 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 . #include #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; -- cgit