Skip to content

Commit f6c2ee7

Browse files
committed
fix rusage struct def in library
1 parent 51f1376 commit f6c2ee7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/library.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5729,7 +5729,23 @@ LibraryManager.library = {
57295729
__01getrlimit64_: 'getrlimit',
57305730

57315731
// TODO: Implement for real. We just do time used, and no useful data
5732-
__rusage_struct_layout: Runtime.generateStructInfo(['ru_utime', 'ru_stime', 'ru_maxrss'], '%struct.rusage'),
5732+
__rusage_struct_layout: Runtime.generateStructInfo([
5733+
'ru_utime',
5734+
'ru_stime',
5735+
'ru_maxrss',
5736+
'ru_ixrss',
5737+
'ru_idrss',
5738+
'ru_isrss',
5739+
'ru_minflt',
5740+
'ru_majflt',
5741+
'ru_nswap',
5742+
'ru_inblock',
5743+
'ru_oublock',
5744+
'ru_msgsnd',
5745+
'ru_msgrcv',
5746+
'ru_nsignals',
5747+
'ru_nvcsw',
5748+
'ru_nivcsw'], '%struct.rusage'),
57335749
getrusage__deps: ['__rusage_struct_layout'],
57345750
getrusage: function(resource, rlp) {
57355751
// %struct.timeval = type { i32, i32 }

0 commit comments

Comments
 (0)