Defines | Functions

getrusage.cc File Reference

#include <sys/time.h>
#include <sys/times.h>
#include <sys/types.h>
#include "defun-dld.h"
#include "oct-map.h"
#include "sysdep.h"
#include "ov.h"
#include "oct-obj.h"
#include "utils.h"
Include dependency graph for getrusage.cc:

Go to the source code of this file.

Defines

#define HZ   60
#define RUSAGE_SELF   0

Functions

 DEFUN_DLD (getrusage,,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} getrusage ()\n\ Return a structure containing a number of statistics about the current\n\ Octave process. Not all fields are available on all systems. If it is\n\ not possible to get CPU time statistics, the CPU time slots are set to\n\ zero. Other missing data are replaced by NaN@. The list of possible\n\ fields is:\n\ \n\ @table @code\n\ @item idrss\n\ Unshared data size.\n\ \n\ @item inblock\n\ Number of block input operations.\n\ \n\ @item isrss\n\ Unshared stack size.\n\ \n\ @item ixrss\n\ Shared memory size.\n\ \n\ @item majflt\n\ Number of major page faults.\n\ \n\ @item maxrss\n\ Maximum data size.\n\ \n\ @item minflt\n\ Number of minor page faults.\n\ \n\ @item msgrcv\n\ Number of messages received.\n\ \n\ @item msgsnd\n\ Number of messages sent.\n\ \n\ @item nivcsw\n\ Number of involuntary context switches.\n\ \n\ @item nsignals\n\ Number of signals received.\n\ \n\ @item nswap\n\ Number of swaps.\n\ \n\ @item nvcsw\n\ Number of voluntary context switches.\n\ \n\ @item oublock\n\ Number of block output operations.\n\ \n\ @item stime\n\ A structure containing the system CPU time used. The structure has the\n\ elements @code{sec} (seconds) @code{usec} (microseconds).\n\ \n\ @item utime\n\ A structure containing the user CPU time used. The structure has the\n\ elements @code{sec} (seconds) @code{usec} (microseconds).\n\ @end table\n\ @end deftypefn")

Define Documentation

#define HZ   60

Definition at line 52 of file getrusage.cc.

Referenced by DEFUN_DLD().

#define RUSAGE_SELF   0

Definition at line 57 of file getrusage.cc.

Referenced by DEFUN(), and DEFUN_DLD().


Function Documentation

DEFUN_DLD ( getrusage   ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines