/*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條評論
主站蜘蛛池模板: 毛片在线播放网址 | 久草在线在线精品观看 | 韩国男女无遮挡高清性视频 | 欧美成人免费丝袜视频在线观看 | 仇爱电视剧泰剧在线观看免费播放 | 日韩欧美h | 欧美成人私人视频88在线观看 | 久久国产乱子伦精品免 | 91免费大片 | 欧美高清一级片 | 亚洲一区播放 | 久草久草在线视频 | 狠狠澡夜夜澡人人爽 | 天天看片网 | 在线看片国产 | 国产美女主播在线观看 | 欧美三级网址 | 欧美精品欧美极品欧美激情 | 国产精品乱码在线观看 | 日韩电影中文字幕 | 国产成人91激情在线播放 | 香蕉久久夜色精品国产小优 | 一级做a爰片性色毛片视频图片 | 国产精品亚洲综合色拍 | 亚洲亚洲人成综合网络 | 在线精品日韩 | 色99色| 亚洲精品日韩精品一区 | 亚洲精品视频观看 | 男女爽爽视频 | 91精品视频免费 | 精品国产污污免费网站 | 中文字幕一区在线观看视频 | 91精品国产免费久久 | 被摁着灌浓精囚禁高h1v1 | 一区二区三区免费视频观看 | 91.com在线观看 | 国产精品久久久久久久久久久搜索 | 成 人 a v天堂 | 四虎影在线永久免费四虎地址8848aa | 91精品国产综合久久婷婷香蕉 |