xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cpumeter.cc File Reference
#include "cpumeter.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/utsname.h>
#include <string>
#include <iostream>
#include <fstream>
Include dependency graph for cpumeter.cc:

Go to the source code of this file.

Macros

#define MAX_PROCSTAT_LENGTH   4096
 

Variables

static const char STATFILENAME [] = "/proc/stat"
 
static int cputime_to_field [10] = { 0, 1, 2, 9, 5, 4, 3, 8, 6, 7 }
 

Macro Definition Documentation

◆ MAX_PROCSTAT_LENGTH

#define MAX_PROCSTAT_LENGTH   4096

Definition at line 20 of file cpumeter.cc.

Variable Documentation

◆ cputime_to_field

int cputime_to_field[10] = { 0, 1, 2, 9, 5, 4, 3, 8, 6, 7 }
static

Definition at line 18 of file cpumeter.cc.

◆ STATFILENAME

const char STATFILENAME[] = "/proc/stat"
static

Definition at line 17 of file cpumeter.cc.

Referenced by CPUMeter::countCPUs(), and CPUMeter::findLine().