CMS 3D CMS Logo

Namespaces | Defines | Typedefs | Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_3/src/EventFilter/Processor/src/procUtils.cc File Reference

#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

namespace  evf
namespace  evf::utils

Defines

#define FIXED_1   (1<<FSHIFT)
#define FSHIFT   16
#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, unsigned int value)
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::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)

Variables

num evf::utils::blocked
num evf::utils::cmaj_flt
num evf::utils::cmin_flt
num evf::utils::cpu
num evf::utils::cstime
num evf::utils::cutime
num evf::utils::eip
num evf::utils::end_code
num evf::utils::esp
num evf::utils::exit_signal
num evf::utils::flags
FILE * evf::utils::input
num evf::utils::it_real_value
num evf::utils::maj_flt
num evf::utils::min_flt
num evf::utils::nicev
num evf::utils::num_threads
char evf::utils::obuf [4096]
num evf::utils::pending
num evf::utils::pgid
num evf::utils::pid
num evf::utils::policy
num evf::utils::ppid
num evf::utils::priority
num evf::utils::rss
num evf::utils::rsslim
num evf::utils::rt_priority
num evf::utils::sid
num evf::utils::sigcatch
num evf::utils::sigign
num evf::utils::start_code
num evf::utils::start_stack
unsigned long long evf::utils::start_time
char evf::utils::state
num evf::utils::stimev
char evf::utils::tcomm [FILENAME_MAX]
long evf::utils::tickspersec
num evf::utils::tty_nr
num evf::utils::tty_pgrp
num evf::utils::utime
num evf::utils::vsize
num evf::utils::wchan
num evf::utils::zero1
num evf::utils::zero2

Define Documentation

#define FIXED_1   (1<<FSHIFT)

Definition at line 44 of file procUtils.cc.

#define FSHIFT   16

Definition at line 43 of file procUtils.cc.

#define LOAD_FRAC (   x)    LOAD_INT(((x) & (FIXED_1-1)) * 100)

Definition at line 46 of file procUtils.cc.

Referenced by evf::utils::uptime().

#define LOAD_INT (   x)    ((x) >> FSHIFT)

Definition at line 45 of file procUtils.cc.

Referenced by evf::utils::uptime().