1
0
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:
WAKAYAMA Shirou 2017-07-26 22:42:13 +09:00
parent f6b70e303c
commit 906b00fc23
2 changed files with 8 additions and 6 deletions

View File

@ -201,7 +201,7 @@ pid x x x x x
ppid x x x x x ppid x x x x x
name x x x x x name x x x x x
cmdline x x x cmdline x x x
create_time x create_time x x
status x x x x status x x x x
cwd x cwd x
exe x x x x exe x x x x
@ -223,16 +223,16 @@ suspend x x x x
resume x x x x resume x x x x
terminate x x x x x terminate x x x x x
kill x x x x kill x x x x
username x username x x x x x
ionice ionice
rlimit rlimit x
num_handlres num_handlers
threads threads
cpu_percent x x x cpu_percent x x x
cpu_affinity cpu_affinity
memory_percent memory_percent
parent x x x parent x x x x
children x x x x children x x x x x
connections x x x connections x x x
is_running is_running
================ ===== ======= ======= ====== ======= ================ ===== ======= ======= ====== =======

View File

@ -352,6 +352,8 @@ func Test_Username(t *testing.T) {
process, _ := NewProcess(int32(myPid)) process, _ := NewProcess(int32(myPid))
pidUsername, _ := process.Username() pidUsername, _ := process.Username()
assert.Equal(t, myUsername, pidUsername) assert.Equal(t, myUsername, pidUsername)
t.Log(pidUsername)
} }
func Test_CPUTimes(t *testing.T) { func Test_CPUTimes(t *testing.T) {