diff options
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/samples.py')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/samples.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/samples.py b/scripts/pybootchartgui/pybootchartgui/samples.py index 472dc27be0..a70d8a5a28 100644 --- a/scripts/pybootchartgui/pybootchartgui/samples.py +++ b/scripts/pybootchartgui/pybootchartgui/samples.py | |||
@@ -53,6 +53,14 @@ class IOPressureSample: | |||
53 | self.avg300 = avg300 | 53 | self.avg300 = avg300 |
54 | self.deltaTotal = deltaTotal | 54 | self.deltaTotal = deltaTotal |
55 | 55 | ||
56 | class MemPressureSample: | ||
57 | def __init__(self, time, avg10, avg60, avg300, deltaTotal): | ||
58 | self.time = time | ||
59 | self.avg10 = avg10 | ||
60 | self.avg60 = avg60 | ||
61 | self.avg300 = avg300 | ||
62 | self.deltaTotal = deltaTotal | ||
63 | |||
56 | 64 | ||
57 | class MemSample: | 65 | class MemSample: |
58 | used_values = ('MemTotal', 'MemFree', 'Buffers', 'Cached', 'SwapTotal', 'SwapFree',) | 66 | used_values = ('MemTotal', 'MemFree', 'Buffers', 'Cached', 'SwapTotal', 'SwapFree',) |