22 #ifndef MEMORYWATCHER_H
23 #define MEMORYWATCHER_H
30 #include "SignalSlot.h"
33 #if defined(HAS_MEMCHUTE)
68 int getCurrentRssUsage()
const;
70 void adjustOomScore();
72 #if defined(HAS_MEMCHUTE)
73 static void memchuteCallback(MemchuteThreshold threshold);
82 Timer<MemoryWatcher> m_timer;
85 int m_timeAtLastLowMemAction;
86 int m_timeAtLastExpensiveLowMemAction;
88 static const int kFileNameLen = 128;
89 char m_fileName[kFileNameLen];
95 #if defined(HAS_MEMCHUTE)
96 int m_memchuteCriticalThreshold;
97 MemchuteWatcher* m_memWatch;