2006-03-04 18:16:49 +00:00
|
|
|
#ifndef HEADER_CPUMeter
|
|
|
|
#define HEADER_CPUMeter
|
|
|
|
/*
|
2006-06-06 20:28:42 +00:00
|
|
|
htop - CPUMeter.h
|
2011-05-26 16:35:07 +00:00
|
|
|
(C) 2004-2011 Hisham H. Muhammad
|
2020-10-05 07:51:32 +00:00
|
|
|
Released under the GNU GPLv2, see the COPYING file
|
2006-03-04 18:16:49 +00:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Meter.h"
|
|
|
|
|
2015-10-23 15:46:21 +00:00
|
|
|
typedef enum {
|
|
|
|
CPU_METER_NICE = 0,
|
|
|
|
CPU_METER_NORMAL = 1,
|
|
|
|
CPU_METER_KERNEL = 2,
|
|
|
|
CPU_METER_IRQ = 3,
|
|
|
|
CPU_METER_SOFTIRQ = 4,
|
|
|
|
CPU_METER_STEAL = 5,
|
|
|
|
CPU_METER_GUEST = 6,
|
|
|
|
CPU_METER_IOWAIT = 7,
|
2019-08-10 04:34:48 +00:00
|
|
|
CPU_METER_FREQUENCY = 8,
|
|
|
|
CPU_METER_ITEMCOUNT = 9, // number of entries in this enum
|
2015-10-23 15:46:21 +00:00
|
|
|
} CPUMeterValues;
|
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass CPUMeter_class;
|
2006-05-09 18:35:51 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass AllCPUsMeter_class;
|
2006-04-10 20:40:38 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass AllCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass LeftCPUsMeter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass RightCPUsMeter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass LeftCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass RightCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass AllCPUs4Meter_class;
|
2020-06-11 21:21:52 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass LeftCPUs4Meter_class;
|
2020-06-11 21:21:52 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass RightCPUs4Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass AllCPUs8Meter_class;
|
2020-09-24 19:56:40 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass LeftCPUs8Meter_class;
|
2020-09-24 19:56:40 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const MeterClass RightCPUs8Meter_class;
|
2020-09-24 19:56:40 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#endif
|