#include <errno.h>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <sys/times.h>
#include <sstream>
#include "procUtils.h"
Go to the source code of this file.
Namespaces | |
evf | |
evf::utils | |
Macros | |
#define | FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */ |
#define | FSHIFT 16 /* nr of bits of precision */ |
#define | LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) |
#define | LOAD_INT(x) ((x) >> FSHIFT) |
Typedefs | |
typedef long long int | evf::utils::num |
Functions | |
void | evf::utils::cDiv (std::ostringstream *out) |
int | evf::utils::gettimesinceboot () |
void | evf::utils::mDiv (std::ostringstream *out, std::string name) |
void | evf::utils::mDiv (std::ostringstream *out, std::string name, std::string value) |
void | evf::utils::mDiv (std::ostringstream *out, std::string name, unsigned int value) |
void | evf::utils::printchar (const char *name, char x) |
void | evf::utils::printone (const char *name, num x) |
void | evf::utils::printonex (const char *name, num x) |
void | evf::utils::printstr (const char *name, char *x) |
void | evf::utils::printtime (const char *name, num x) |
void | evf::utils::printtimediff (const char *name, num x) |
void | evf::utils::printunsigned (const char *name, unsigned long long x) |
void | evf::utils::procCpuStat (unsigned long long &idleJiffies, unsigned long long &allJiffies) |
void | evf::utils::procStat (std::ostringstream *out) |
void | evf::utils::readchar (char *x) |
void | evf::utils::readone (num *x) |
void | evf::utils::readstr (char *x) |
void | evf::utils::readunsigned (unsigned long long *x) |
void | evf::utils::uptime (std::ostringstream *out) |
Definition at line 44 of file procUtils.cc.
#define FSHIFT 16 /* nr of bits of precision */ |
Definition at line 43 of file procUtils.cc.
Definition at line 46 of file procUtils.cc.
Referenced by evf::utils::uptime().
Definition at line 45 of file procUtils.cc.
Referenced by evf::utils::uptime().