加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

抓狂!这条命令执行完女朋友都跟人跑了!

发布时间:2019-07-26 04:57:25 所属栏目:Windows 来源:良许
导读:副标题#e# 作为程序员,时间是金钱,效率是绳命,万一遇到产品经理临时又加需求,我们常常是这个状态: 如果是这个状态,那已经是很好的状况了。万一如果因为工作忙碌没时间陪女朋友,那么就很可能免费获赠一顶精致的 绿 帽 子 其实不仅仅是我们程序员工作

默认情况下,time 命令只输出 real,usr,sys 三个内容,如果我们想要个性化一些,算定义它的输出格式,time 命令也是支持的。time 命令支持的格式有很多,如下所示:

  1. C - Name and command line arguments used 
  2. D - Average size of the process's unshared data area in kilobytes 
  3. E - Elapsed time in a clock format 
  4. F - Number of page faults 
  5. I - Number of file system inputs by the process 
  6. K - Average total memory use of the process in kilobytes 
  7. M - Maximum resident set the size of the process during the lifetime in Kilobytes 
  8. O - Number of file system outputs by the process 
  9. P - Percentage of CPU that the job received 
  10. R - Number of minor or recoverable page faults 
  11. S - Total number of CPU seconds used by the system in kernel mode 
  12. U - Total number of CPU seconds used by user mode 
  13. W - Number of times the process was swapped out of main memory 
  14. X - Average amount of shared text in the process 
  15. Z - System's page size in kilobytes 
  16. c - Number of times the process was context-switched 
  17. e - Elapsed real time used by the process in seconds 
  18. k - Number of signals delivered to the process 
  19. p - Average unshared stack size of the process in kilobytes 
  20. r - Number of socket messages received by the process 
  21. s - Number of socket messages sent by the process 
  22. t - Average resident set size of the process in kilobytes 
  23. w - Number of time the process was context-switched voluntarily 
  24. x - Exit status of the command 

如果我们想要输出以下这样的格式:

  1. Elapsed Time = 0:01:00, Inputs 2, Outputs 1 

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读