/*ReturnresourceusageinformationonprocessindicatedbyWHOandputitin*USAGE.Returns0forsuccess,-1forfailure.*/externintgetrusage(__rusage_who_t__who,structrusage*__usage)__THROW;參數(shù):who:可能選擇有RUSAGE_SELF:獲取當前進程的資" />

欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

linux下getrusage()

系統(tǒng) 2139 0

#include <sys/resource.h>

/* Return resource usage information on process indicated by WHO
and put it in *USAGE. Returns 0 for success, -1 for failure. */
extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __THROW;

參數(shù): 

who:可能選擇有

  RUSAGE_SELF:獲取當前進程的資源使用信息。

  RUSAGE_CHILDREN:獲取子進程的資源使用信息。

usage:指向存放資源使用信息的結(jié)構(gòu)指針

#include <bits/resources.>

/* Structure which says how much of each resource has been used. */
struct rusage
{
?/* Total amount of user time used. */
?struct timeval ru_utime;
?/* Total amount of system time used. */
?struct timeval ru_stime;
?/* Maximum resident set size (in kilobytes). */
?long int ru_maxrss;
?/* Amount of sharing of text segment memory
?with other processes (kilobyte-seconds). */
?long int ru_ixrss;
?/* Amount of data segment memory used (kilobyte-seconds). */
?long int ru_idrss;
?/* Amount of stack memory used (kilobyte-seconds). */
?long int ru_isrss;
?/* Number of soft page faults (i.e. those serviced by reclaiming
?a page from the list of pages awaiting reallocation. */
?long int ru_minflt;
?/* Number of hard page faults (i.e. those that required I/O). */
?long int ru_majflt;
?/* Number of times a process was swapped out of physical memory. */
?long int ru_nswap;
?/* Number of input operations via the file system. Note: This
?and `ru_oublock' do not include operations with the cache. */
?long int ru_inblock;
?/* Number of output operations via the file system. */
?long int ru_oublock;
?/* Number of IPC messages sent. */
?long int ru_msgsnd;
?/* Number of IPC messages received. */
?long int ru_msgrcv;
?/* Number of signals delivered. */
long int ru_nsignals;
/* Number of voluntary context switches, i.e. because the process
gave up the process before it had to (usually to wait for some
resource to be available). */
long int ru_nvcsw;
/* Number of involuntary context switches, i.e. a higher priority process

became runnable or the current process used up its time slice. */
?long int ru_nivcsw;
?};

?

linux下getrusage()


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。?!

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国变精品美女久久久久av爽 | 亚洲天堂在线电影 | 亚洲精品亚洲人成人网 | 98色花堂国产第一页 | 午夜剧场操一操 | 日本xxww视频免费 | www.日本在线播放 | 国产一区二区三区久久久久久久久 | 日韩欧美专区 | 亚洲精品一区久久狠狠欧美 | 日韩欧美国产精品第一页不卡 | 国产激情偷乱视频一区二区三区 | 夜色伊人| 欧美不在线 | 欧美一区二区三区 | 四虎最新免费网址 | 日韩在线高清视频 | 日韩欧美一区二区三区四区 | 日本jizz| 欧美日韩综合视频 | 欧美综合中文字幕久久 | 国产女人与拘做受视频 | 秋霞久久国产精品电影院 | 欧美日韩一区二区在线 | 欧美黄色片在线观看 | 亚洲欧美综合精品久久成人 | 亚洲第一中文字幕 | 欧美成人生活片 | 五月婷婷狠狠干 | 久久精品99| 男女啪啪免费视频 | 日本99热| 91视视频在线观看入口直接观看 | 日韩精品一区二区三区中文字幕 | 久久精品免费一区二区三区 | 97人人草| 中文字幕在线不卡 | 国内精品伊人久久久久7777人 | 高清不卡一区 | 99在线视频观看 | 殴美一区 |