
rusage(3)             LPC 系統函數             rusage(3)

名稱
     rusage() - reports information gathered by  the  getrusage()
     system call

語法
     mapping rusage( void );

描述
     This efun collects information gathered via the  getrusage()
     system  call.  Read the getrusage() man page for more infor-
     mation on what information will be collected.  Some  systems
     do  not  have  the  getrusage()  system call but do have the
     times() system call.  On those  systems,  only  "utime"  and
     "stime"  will  be  available.   Times  are  reported in mil-
     liseconds.

     Here is an example usage of rusage():

       void
       create()
       {
           mapping info;

           info = rusage();
           write("user time = " + info["utime"] + "ms\n");
           write("system time = " + info["stime"] + "ms\n");
       }

     The available fields are:

          utime, stime,  maxrss,  ixrss,  idrss,  isrss,  minflt,
          majflt,  nswap, inblock, oublock, msgsnd, msgrcv, nsig-
          nals, nvcsw, nivcsw.

請參考
     time_expression(3), function_profile(3), time(3), uptime(3)

MudOS                Last change: 5 Sep 1994                    1

