diff options
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/samples.py')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/samples.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/samples.py b/scripts/pybootchartgui/pybootchartgui/samples.py index 9fc309b3ab..a70d8a5a28 100644 --- a/scripts/pybootchartgui/pybootchartgui/samples.py +++ b/scripts/pybootchartgui/pybootchartgui/samples.py | |||
@@ -37,6 +37,31 @@ class CPUSample: | |||
37 | return str(self.time) + "\t" + str(self.user) + "\t" + \ | 37 | return str(self.time) + "\t" + str(self.user) + "\t" + \ |
38 | str(self.sys) + "\t" + str(self.io) + "\t" + str (self.swap) | 38 | str(self.sys) + "\t" + str(self.io) + "\t" + str (self.swap) |
39 | 39 | ||
40 | class CPUPressureSample: | ||
41 | def __init__(self, time, avg10, avg60, avg300, deltaTotal): | ||
42 | self.time = time | ||
43 | self.avg10 = avg10 | ||
44 | self.avg60 = avg60 | ||
45 | self.avg300 = avg300 | ||
46 | self.deltaTotal = deltaTotal | ||
47 | |||
48 | class IOPressureSample: | ||
49 | def __init__(self, time, avg10, avg60, avg300, deltaTotal): | ||
50 | self.time = time | ||
51 | self.avg10 = avg10 | ||
52 | self.avg60 = avg60 | ||
53 | self.avg300 = avg300 | ||
54 | self.deltaTotal = deltaTotal | ||
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 | |||
64 | |||
40 | class MemSample: | 65 | class MemSample: |
41 | used_values = ('MemTotal', 'MemFree', 'Buffers', 'Cached', 'SwapTotal', 'SwapFree',) | 66 | used_values = ('MemTotal', 'MemFree', 'Buffers', 'Cached', 'SwapTotal', 'SwapFree',) |
42 | 67 | ||