pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.453 2002/12/01 18:53:05 mast Exp $ + || $Id: builtin_functions.c,v 1.454 2002/12/07 13:52:09 grubba Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.453 2002/12/01 18:53:05 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.454 2002/12/07 13:52:09 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"   #include "multiset.h"   #include "pike_types.h" - #include "rusage.h" + #include "pike_rusage.h"   #include "operators.h"   #include "fsort.h"   #include "callback.h"   #include "gc.h"   #include "backend.h"   #include "main.h"   #include "pike_memory.h"   #include "threads.h"   #include "time_stuff.h"   #include "version.h"
pike.git/src/builtin_functions.c:1794:    *! @elem int voluntary_context_switches    *! Number of voluntary context switches (usually to wait for    *! some service).    *! @elem int involuntary_context_switches    *! Number of preemptions, i.e. context switches due to expired    *! time slices, or when processes with higher priority were    *! scheduled.    *! @elem int sysc    *! Number of system calls.    *! @elem int ioch -  *! ? +  *! Number of characters read and written.    *! @elem int rtime -  *! ? +  *! Elapsed real time (ms).    *! @elem int ttime -  *! ? +  *! Elapsed system trap (system call) time (ms).    *! @elem int tftime -  *! ? +  *! Text page fault sleep time (ms).    *! @elem int dftime -  *! ? +  *! Data page fault sleep time (ms).    *! @elem int kftime -  *! ? +  *! Kernel page fault sleep time (ms).    *! @elem int ltime -  *! ? +  *! User lock wait sleep time (ms).    *! @elem int slptime -  *! ? +  *! Other sleep time (ms).    *! @elem int wtime -  *! ? +  *! Wait CPU (latency) time (ms).    *! @elem int stoptime -  *! ? +  *! Time spent in stopped (suspended) state.    *! @elem int brksize    *! Heap size.    *! @elem int stksize    *! Stack size.    *! @endarray    *!    *! The values will not be further explained here; read your system manual    *! for more information.    *!    *! @note    *! All values may not be present on all systems.    *!    *! @seealso -  *! @[time()] +  *! @[time()], @[System.getrusage()]    */   void f_rusage(INT32 args)   {    INT32 *rus,e;    struct array *v;    pop_n_elems(args);    rus=low_rusage();    if(!rus)    PIKE_ERROR("rusage", "System rusage information not available.\n", Pike_sp, args);    v=allocate_array_no_init(29,0);