2006-04-10 20:40:38 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
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
|
2006-03-04 18:16:49 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
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,
|
|
|
|
CPU_METER_ITEMCOUNT = 8, // number of entries in this enum
|
|
|
|
} CPUMeterValues;
|
|
|
|
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
extern int CPUMeter_attributes[];
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(a,b) ((a)>(b)?(a):(b))
|
|
|
|
#endif
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass CPUMeter_class;
|
2006-05-09 18:35:51 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass AllCPUsMeter_class;
|
2006-04-10 20:40:38 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass AllCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass LeftCPUsMeter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass RightCPUsMeter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass LeftCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2012-12-05 15:12:20 +00:00
|
|
|
extern MeterClass RightCPUs2Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2020-06-11 21:21:52 +00:00
|
|
|
extern MeterClass AllCPUs4Meter_class;
|
|
|
|
|
|
|
|
extern MeterClass LeftCPUs4Meter_class;
|
|
|
|
|
|
|
|
extern MeterClass RightCPUs4Meter_class;
|
2011-11-18 06:08:56 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#endif
|