mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-04 22:17:34 +08:00
add features to README. Thank you for all of great contributors!
This commit is contained in:
parent
f6b70e303c
commit
906b00fc23
12
README.rst
12
README.rst
@ -201,7 +201,7 @@ pid x x x x x
|
||||
ppid x x x x x
|
||||
name x x x x x
|
||||
cmdline x x x
|
||||
create_time x
|
||||
create_time x x
|
||||
status x x x x
|
||||
cwd x
|
||||
exe x x x x
|
||||
@ -223,16 +223,16 @@ suspend x x x x
|
||||
resume x x x x
|
||||
terminate x x x x x
|
||||
kill x x x x
|
||||
username x
|
||||
username x x x x x
|
||||
ionice
|
||||
rlimit
|
||||
num_handlres
|
||||
rlimit x
|
||||
num_handlers
|
||||
threads
|
||||
cpu_percent x x x
|
||||
cpu_affinity
|
||||
memory_percent
|
||||
parent x x x
|
||||
children x x x x
|
||||
parent x x x x
|
||||
children x x x x x
|
||||
connections x x x
|
||||
is_running
|
||||
================ ===== ======= ======= ====== =======
|
||||
|
@ -352,6 +352,8 @@ func Test_Username(t *testing.T) {
|
||||
process, _ := NewProcess(int32(myPid))
|
||||
pidUsername, _ := process.Username()
|
||||
assert.Equal(t, myUsername, pidUsername)
|
||||
|
||||
t.Log(pidUsername)
|
||||
}
|
||||
|
||||
func Test_CPUTimes(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user