Merge pull request #6616 from fengb/darwin-rusage

Darwin rusage
master
Andrew Kelley 2020-10-15 20:49:54 -04:00 committed by GitHub
commit a66449c1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -1474,3 +1474,25 @@ pub const CLOCK_UPTIME_RAW = 8;
pub const CLOCK_UPTIME_RAW_APPROX = 9;
pub const CLOCK_PROCESS_CPUTIME_ID = 12;
pub const CLOCK_THREAD_CPUTIME_ID = 16;
pub const RUSAGE_SELF = 0;
pub const RUSAGE_CHILDREN = -1;
pub const rusage = extern struct {
utime: timeval,
stime: timeval,
maxrss: isize,
ixrss: isize,
idrss: isize,
isrss: isize,
minflt: isize,
majflt: isize,
nswap: isize,
inblock: isize,
oublock: isize,
msgsnd: isize,
msgrcv: isize,
nsignals: isize,
nvcsw: isize,
nivcsw: isize,
};

View File

@ -1769,7 +1769,7 @@ pub const rusage = extern struct {
utime: timeval,
stime: timeval,
maxrss: isize,
ix_rss: isize,
ixrss: isize,
idrss: isize,
isrss: isize,
minflt: isize,