[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cputime on a SunOS-5.5 machine
From: |
John W. Eaton |
Subject: |
cputime on a SunOS-5.5 machine |
Date: |
Thu, 21 Mar 1996 07:54:12 -0600 |
Francesco Potorti` <address@hidden> wrote:
: There is no getrusage on my octave on alpha. What were you trying to
: do?
I think Rick must be using one of the snapshots. In the current
sources there is a getrusage() function that returns a structure like
this:
octave:3> getrusage ()
ans =
{
nvcsw = 170
nswap = 0
ixrss = 22
nivcsw = 35
msgrcv = 0
inblock = 648
minflt = 447
stime =
{
usec = 179584
sec = 0
}
msgsnd = 0
isrss = 4
utime =
{
usec = 131760
sec = 0
}
idrss = 168
majflt = 52
maxrss = 1272
nsignals = 0
oublock = 11
}
but only if your system has the getrusage system call. Also in the
current sources, cputime() is implemented in an M-file by calling
the built-in function getrusage().
In any case, cputime has always been implemented using the getrusage()
system call, so it does not work on all systems. If you know of
systems that do not have getrusage() but do have ways to get some (or
all) of that information using different system functions, please let
me know.
I do know that Solaris has getrusage() in the BSD compatibility library,
but Octave's configure script isn't currently looking there.
Something more to fix...
jwe