diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-31 16:54:57 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-31 16:54:57 -0800 |
commit | f6c2ee75635583e2652df34045464ce908645044 (patch) | |
tree | df58083b23c2fd73a54f958a5522a24b8f166bef | |
parent | 51f1376cf249c7da09b2a872efff49040674e933 (diff) |
fix rusage struct def in library
-rw-r--r-- | src/library.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index 0c475ecb..6f1f2fe5 100644 --- a/src/library.js +++ b/src/library.js @@ -5729,7 +5729,23 @@ LibraryManager.library = { __01getrlimit64_: 'getrlimit', // TODO: Implement for real. We just do time used, and no useful data - __rusage_struct_layout: Runtime.generateStructInfo(['ru_utime', 'ru_stime', 'ru_maxrss'], '%struct.rusage'), + __rusage_struct_layout: Runtime.generateStructInfo([ + 'ru_utime', + 'ru_stime', + 'ru_maxrss', + 'ru_ixrss', + 'ru_idrss', + 'ru_isrss', + 'ru_minflt', + 'ru_majflt', + 'ru_nswap', + 'ru_inblock', + 'ru_oublock', + 'ru_msgsnd', + 'ru_msgrcv', + 'ru_nsignals', + 'ru_nvcsw', + 'ru_nivcsw'], '%struct.rusage'), getrusage__deps: ['__rusage_struct_layout'], getrusage: function(resource, rlp) { // %struct.timeval = type { i32, i32 } |