/*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激情在线 | 国产亚洲精品久久精品录音 | 国产免费福利网站 | 久草热视频在线 | 日日干夜夜操s8 | 国产精品污污视频 | 国产精品亚洲一区二区三区在线 | 九九视频这里只有精品99 | 国产日韩欧美一区 | 羞羞哒哒视频 | 在线观看的av | 国产激情91久久精品导航 | 成人在线视频在线观看 | 午夜亚洲福利 | 亚洲在线播放视频 | 丝袜偷窥亚洲综合 | 久久久国产精品 | 午夜九九九| 天天做天天爱天天综合网 | 日本污视频在线观看 | 男女xx| 99这里只有精品66视频 | 午夜视频网 | 中文字幕综合在线观看 | 69pao强力打造免费高清 | 精品国产成a人在线观看 | 黄色av一区| 久久影城 | 成人在线中文字幕 | 亚洲播播| 九九久久久 | 国产午夜亚洲精品第一区 | 99久久99久久精品免费看蜜桃 | 色吧综合 | 国产高清视频在线观看 | 精品一区二区三区久久 | 九九这里只有精品视频 |