Sys.ps(sfsmisc)
Sys.ps()所属R语言包:sfsmisc
Return Process Status (unix ps) Information
返回进程状态(UNIX PS)信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions return process id and status information, typically about the running R process.
这些函数返回的进程ID和状态信息,通常的运行R过程。
用法----------Usage----------
Sys.ps.cmd()
Sys.ps(process= Sys.getpid(),
fields = c("pid", "pcpu", "time", "vsz", "comm"),
usefile = length(fields) > 10,
ps.cmd = Sys.ps.cmd(),
verbose = getOption("verbose"),
warn.multi = verbose || any(fields != "ALL"))
Sys.sizes(process = Sys.getpid(), ps.cmd = Sys.ps.cmd())
参数----------Arguments----------
参数:process
the process id, an integer.
的进程ID,一个整数。
参数:fields
character strings of "ALL", specifying which process status fields are desired.
字符串的"ALL",指定所需的进程状态字段。
参数:usefile
logical; if true, system writes to a temporary file and that is scaned subsequently.
逻辑,如果情况属实,system写入到一个临时文件,这是scan版随后。
参数:ps.cmd
character string, giving the “ps” command name to be used.
字符串,给人以“ps”命令所用的名字。
参数:verbose
logical ...
逻辑...
参数:warn.multi
logical ...
逻辑...
Details
详细信息----------Details----------
Use man ps on your respective Unix system, to see what fields are supported exactly. Unix dialects do differ here, and, SunOS-Solaris even has more than one ps command...
使用man ps了各自的Unix系统,看看有什么完全支持。不同的Unix方言在这里,和的SunOS,Solaris的甚至有不止一个ps命令...
值----------Value----------
Note, that Sys.sizes() currently returns two integers which are “common” to Solaris and Linux.
请注意,这Sys.sizes()返回两个整数,这是“共同”Solaris和Linux。
(作者)----------Author(s)----------
Martin Maechler
参见----------See Also----------
Sys.info, Sys.getpid, proc.time.
Sys.info,Sys.getpid,proc.time。
实例----------Examples----------
(.pid <- Sys.getpid()) ## process ID of current process[当前进程的进程ID]
Sys.sizes(.pid)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|