Commit Graph

351 Commits (1f5fdd1fbabf32d32041de61e0aca680256f5175)
 

Author SHA1 Message Date
Shirou WAKAYAMA 1f5fdd1fba process: user and system should be divide by ClockTicks directly. 10 years ago
Shirou WAKAYAMA 8db78af11e process: CPUPercent delta should be changed by CPUNums. 10 years ago
Shirou WAKAYAMA 8f05d68a09 host: forget to convert to uint64. 10 years ago
Shirou WAKAYAMA 515398a6f6 host: Boottime return type was wrong on darwin #40 10 years ago
Shirou WAKAYAMA 170390c0df cpu: fix build option on unix. 10 years ago
WAKAYAMA Shirou ead8393137 cpu: use wmic to get CPU usage on Windows. 10 years ago
Shirou WAKAYAMA 1851e63d38 process: callPs can get from all process and Ppid() uses ps command on darwin. 10 years ago
Shirou WAKAYAMA 6227460dc5 process: if pid < 0, skip it. and Cmdline retruned Joined string. 10 years ago
WAKAYAMA Shirou 19e34cf385 process: test pid is wrong in Windows. 10 years ago
WAKAYAMA Shirou ec2b509dda cpu: skip percpu percent test if windows. Windows can only get one CPU info currently. 10 years ago
Shirou WAKAYAMA ae3b0a48f4 process: commented out CPUPercent due to fail on drone.io. 10 years ago
Shirou WAKAYAMA f80276597c oops 10 years ago
Shirou WAKAYAMA 2342350766 process: fix for drone.io test. 10 years ago
Shirou WAKAYAMA 3ce89ce0c9 process: fix linux testing. 10 years ago
Shirou WAKAYAMA e39f17afd7 process: fix process status parsing. 10 years ago
若山史郎 9d38e5c995 process: add meminfo, cmdline on darwin. 10 years ago
若山史郎 20c3ddbfe5 process: fix darwin kinfo_proc struct and introduce creation by godef. 10 years ago
Shirou WAKAYAMA c61c09295c process: delete CPUPercent on the every architecture dependent part. 10 years ago
Shirou WAKAYAMA 2093d43c2a process: implement cpu_percent on linux. 10 years ago
若山史郎 e71113cffd change darwin process support status to broken.
using godef breaks process information on darwin. I am tackling to fix it.
10 years ago
若山史郎 d1b9134c32 process: use syscall in common on darwin 10 years ago
若山史郎 cea341c690 mem: add 0 check to darwin.swapmem. 10 years ago
WAKAYAMA Shirou 9569e2389c Merge branch 'master' of https://github.com/shirou/gopsutil 10 years ago
WAKAYAMA shirou 508c60cac3 disk: forget to add some files. 10 years ago
WAKAYAMA shirou 0451709fe3 disk: add disk_io_counter to FreeBSD by using sysctl(kern.devstat.all). 10 years ago
WAKAYAMA shirou be5b5a5754 move CallSysCall to common/common_freebsd 10 years ago
WAKAYAMA Shirou 612e7109e1 delete debug 10 years ago
WAKAYAMA Shirou bb1747fc85 disk: implements DiskIoCounterInfo on windows. Note: only read/write counts during 500 msec.
Thanks for mackerel-agent!
10 years ago
WAKAYAMA Shirou 4b0f5a03dc host: use wmic OS instead of calling GetTickCount on Windows. 10 years ago
WAKAYAMA Shirou 4694ce0e4d cpu: use wmic to get CPUInfo on Windows 10 years ago
WAKAYAMA shirou b8dc51929a forget to change float32 to float64 10 years ago
若山史郎 f2435bc8de host: skip if utmp.Type is not USERPROCESS (defined in utmpx.h) 10 years ago
若山史郎 a5d366a70c host: Users() on darwin works. but Started is not correct. 10 years ago
Shirou WAKAYAMA 4ead971d70 fix CPUTimes type change problem on other packages. 10 years ago
Shirou WAKAYAMA 753ea1bb48 fix when converting CPUTimes to JSON, sometimes idel have exponent 10 years ago
Shirou WAKAYAMA 4b5bf22b88 change CPUTimes type from float32 to float64 to resolve precision issue. 10 years ago
Shirou WAKAYAMA 18ab22b6fc cpu: should be divided by CPU_TICK 10 years ago
WAKAYAMA Shirou 69ad6a7822 fix new line problem on Windows 10 years ago
shirou 3907a842a7 Merge pull request #36 from jwilder/jw-panic
Fix panics with docker stats
10 years ago
Jason Wilder 90c6c3ef3e Fix panic in CgroupCPU
If an invalid container ID is passed to CgroupCPU,
a panic can result.
10 years ago
Jason Wilder 812b04d363 Don't ignore err when getting CgroupMemDocker stats
Fixes panic: runtime error: index out of range

goroutine 10 [running]:
testing.func·006()
	/usr/local/go/src/testing/testing.go:441 +0x181
github.com/shirou/gopsutil/docker.CgroupMem(0x586b30, 0x6, 0x5a87d0, 0x1c, 0x0, 0x0, 0x0)
	/home/jwilder/go/src/github.com/shirou/gopsutil/docker/docker_linux.go:119 +0xf48
github.com/shirou/gopsutil/docker.CgroupMemDocker(0x586b30, 0x6, 0x0, 0x0, 0x0)
	/home/jwilder/go/src/github.com/shirou/gopsutil/docker/docker_linux.go:184 +0x57

If the ID passed to the CGroupMemDocker does not exist, you can get
a panic at runtime.  This can happen when a container exits before
calling the func.
10 years ago
若山史郎 d6802457a3 update README. now i386 is supported. 10 years ago
shirou ec19c4651d Merge pull request #34 from rekby/freebsd_386
+ process struct for freebsd 386
10 years ago
shirou 79dbbb73a6 Merge pull request #35 from rekby/linux_386
+ host and process for linux 386
10 years ago
rekby 29807862fb + host and process for linux 386 10 years ago
rekby 81898dcc91 + process struct for freebsd 386 10 years ago
Shirou WAKAYAMA 59fefdbf72 add common_test. 10 years ago
Shirou WAKAYAMA 389b362cce if not NULL terminated, size is not set correctly. 10 years ago
若山史郎 1dd94cadbd add coverall.sh which can concatinate multi-package coverage. 10 years ago
shirou 4a0ce1d13e Merge pull request #33 from codeskyblue/master
change cpu_linux.go: on some android, runtime.NumCPU() will not return r...
10 years ago