Lines Matching refs:ru
65 struct rusage ru;
71 if (getrusage(who, &ru) == -1) {
86 PyFloat_FromDouble(doubletime(ru.ru_utime)));
88 PyFloat_FromDouble(doubletime(ru.ru_stime)));
89 PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss));
90 PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss));
91 PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss));
92 PyStructSequence_SET_ITEM(result, 5, PyInt_FromLong(ru.ru_isrss));
93 PyStructSequence_SET_ITEM(result, 6, PyInt_FromLong(ru.ru_minflt));
94 PyStructSequence_SET_ITEM(result, 7, PyInt_FromLong(ru.ru_majflt));
95 PyStructSequence_SET_ITEM(result, 8, PyInt_FromLong(ru.ru_nswap));
96 PyStructSequence_SET_ITEM(result, 9, PyInt_FromLong(ru.ru_inblock));
97 PyStructSequence_SET_ITEM(result, 10, PyInt_FromLong(ru.ru_oublock));
98 PyStructSequence_SET_ITEM(result, 11, PyInt_FromLong(ru.ru_msgsnd));
99 PyStructSequence_SET_ITEM(result, 12, PyInt_FromLong(ru.ru_msgrcv));
100 PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals));
101 PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw));
102 PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw));