summaryrefslogtreecommitdiffstats
path: root/kicker-applets/ktimemon/sample.h
diff options
context:
space:
mode:
Diffstat (limited to 'kicker-applets/ktimemon/sample.h')
-rw-r--r--kicker-applets/ktimemon/sample.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kicker-applets/ktimemon/sample.h b/kicker-applets/ktimemon/sample.h
index 6ebe77d..e01965f 100644
--- a/kicker-applets/ktimemon/sample.h
+++ b/kicker-applets/ktimemon/sample.h
@@ -47,10 +47,12 @@ public:
void fill(unsigned scale); // fill sample with some fake values
};
+#ifdef __linux__
struct MemStats {
const char *name;
unsigned long *stat;
};
+#endif
KSample(KTimeMon *timemon, bool autoScale, unsigned pageScale,
unsigned swapScale, unsigned ctxScale);
@@ -83,10 +85,15 @@ private:
#if defined(USE_SOLARIS) || defined(__osf__)
unsigned long pagesPerMB;
#endif
+#ifdef __NetBSD__
+ int pg_to_mb_shift;
+#endif
Sample sample, oldSample;
unsigned pageScale, swapScale, cxScale;
bool autoscale;
+#ifdef __linux__
struct MemStats memstats[7];
+#endif
};
#endif // SAMPLE_H