getrusage() and ru_nswap

From: Date: Wed, 26 Jan 2005 23:29:09 +0000
Subject: getrusage() and ru_nswap
Groups: php.general 
Request: Send a blank email to php-general+get-207440@lists.php.net to get a copy of this message
Hi, be kind enough to CC me as I'm not in the list. I wonder why getrusage() skip the ru_nswap ? quoting ext/standard/microtime.c:
#if !defined( _OSD_POSIX) && !defined(__BEOS__) /* BS2000 has only a few fields in the rusage struct */
PHP_RUSAGE_PARA(ru_oublock); PHP_RUSAGE_PARA(ru_inblock); PHP_RUSAGE_PARA(ru_msgsnd); PHP_RUSAGE_PARA(ru_msgrcv); PHP_RUSAGE_PARA(ru_maxrss); PHP_RUSAGE_PARA(ru_ixrss); PHP_RUSAGE_PARA(ru_idrss); PHP_RUSAGE_PARA(ru_minflt); PHP_RUSAGE_PARA(ru_majflt); PHP_RUSAGE_PARA(ru_nsignals); PHP_RUSAGE_PARA(ru_nvcsw); PHP_RUSAGE_PARA(ru_nivcsw); #endif /*_OSD_POSIX*/ PHP_RUSAGE_PARA(ru_utime.tv_usec); PHP_RUSAGE_PARA(ru_utime.tv_sec); PHP_RUSAGE_PARA(ru_stime.tv_usec); PHP_RUSAGE_PARA(ru_stime.tv_sec); #undef PHP_RUSAGE_PARA
Where is 'ru_nswap' ? Sure, there's a good reason for that not being reported. A pity is that it stands in the doc http://php.net/manual/en/function.getrusage.php. I believe it can be usefull to review over sites. Thanks, à+ -- bertrand Gugger (toggg)

« previous php.general (#207440) next »