Commit Graph

942 Commits (906b00fc23a2c36d7f3c6d652306932d45c772b4)
 

Author SHA1 Message Date
Shirou WAKAYAMA bd1b04fe67 [process]linux: add document to Status. 9 years ago
shirou 073079b672 Merge pull request #185 from freman/no-lsof-ppid
Remove the requirement to use lost for pid …
9 years ago
Shannon Wynter f99d495462 Run goimports before committing... 9 years ago
Shannon Wynter a4387d0c92 emulate original behaviour 9 years ago
Shannon Wynter c903f14189 Remove the requirement to use lsof by using the information provided in status to get the parent pid 9 years ago
Shirou WAKAYAMA f2ebb91cf0 [disk]darwin,freebsd: implements 'all' argument. 9 years ago
Shirou WAKAYAMA ca99d7dc3f [disk]linux: implements 'all' argument. 9 years ago
Shirou WAKAYAMA 5daf090513 [cpu]linux: vendorId in cpuinfo is sometimes vendor_id. 9 years ago
Shirou WAKAYAMA 0787e8ba3e [host]linux-arm: update type_liux.go. Test will fail. 9 years ago
shirou e8f7a95747 Merge pull request #177 from shirou/v2
change to version2 with many of incompatiblity.
9 years ago
Shirou WAKAYAMA 1cc575dae3 remove gopkg.in from README. 9 years ago
Shirou WAKAYAMA 4c73e74c42 add helpful Makefile. 9 years ago
Shirou WAKAYAMA adf2f03a48 fix build and path error 9 years ago
Shirou WAKAYAMA bce9212def fix build bugs. 9 years ago
Shirou WAKAYAMA d21ed2b40d search path via exec.LookPath before actual invoke. 9 years ago
Shirou WAKAYAMA 613a8a90e1 fixed by golint. 9 years ago
Shirou WAKAYAMA 944429d994 fixed by errcheck 9 years ago
Shirou WAKAYAMA da89408631 Merge branch 'master' into v2 9 years ago
WAKAYAMA shirou 37d8908841 [process]freebsd: implementes proceess.Nice() 9 years ago
WAKAYAMA shirou 37b6b4051f [process]freebsd: process_freebsd_amd64.go is now generated by cgo godefs. 9 years ago
WAKAYAMA shirou e5c53aa342 Merge branch 'master' of github.com:shirou/gopsutil 9 years ago
Shirou WAKAYAMA 15a7edb712 [process]linux: linux process status change to "R" not "Running" see #173 9 years ago
Shirou WAKAYAMA 4bb84648bf JSON representation is renamed to fit Google JSON style, camelCase. 9 years ago
Shirou WAKAYAMA 46ddd57c72 process has NetIOCounters and IOCounters. 9 years ago
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 9 years ago
Shirou WAKAYAMA be06a94d44 fix the gopkgin versioning on README. 9 years ago
Shirou WAKAYAMA 70ba28090d add version 2 breaking change notification to README. 9 years ago
WAKAYAMA shirou dc8b14acd5 [disk]freebsd: change to use C.sizeof_struct. 9 years ago
Shirou WAKAYAMA 1f32ce1bb3 [net]linux: skip if "/proc/sys/net" is not exists on test environment. 9 years ago
Shirou WAKAYAMA fa3e1cc196 [common]linux: add HostEtc to switch '/etc' See #175. 9 years ago
shirou 4dfd293fa8 Merge pull request #169 from shirou/net/replace_lsof
[net]linux: start replacing lsof
9 years ago
Shirou WAKAYAMA 34b63e671b [net]linux: add a test and fix private field name. 9 years ago
Shirou WAKAYAMA 627d2a9871 [process]: fix CPU_Percent always 0 if duration > 0 (#172) 9 years ago
Shirou WAKAYAMA 567da004c5 [net]linux: explicit skip CI. 9 years ago
Shirou WAKAYAMA 32fa88eb49 [net]linux: TestGetProcInodes will fail on CI. 9 years ago
Shirou WAKAYAMA 31439aa6b5 [net]linux: fix valious bugs in NetConnections. 9 years ago
Shirou WAKAYAMA e4ddff09d5 [net]linux: add process_unix for NetConnections. 9 years ago
Shirou WAKAYAMA 32c62b5d48 [net]linux: implement processInet(). 9 years ago
Shirou WAKAYAMA 715c421b57 [process]: add OpenFiles() test. 9 years ago
shirou 24e2746d13 Merge pull request #171 from raviparimi/make-slice-errors
Provide correct length for slice creation.
9 years ago
raviparimi be2dab5a40 Provide correct length for slice creation.
- Creating a slice of length numFDs and later appending elements to it
  results in a slice whose first numFDs elements are all nil. It is
  sufficient to create a slice of zero length since we are appending
  elements to it.
- The current allocation will make ret a slice of length 0. What's
  needed is a slice of length len(ofs).
9 years ago
shirou a0cf924cac Merge pull request #170 from vecmezoni/fd-close
NewProcess does not close file descriptor
9 years ago
Alexander Inozemtsev f4902fae49 Properly close opened file 9 years ago
Shirou WAKAYAMA 6c352016d8 [net]linux: start replacing lsof. still work in progress. 9 years ago
Shirou WAKAYAMA 1de1357e77 [process]: add FailNow to avoid panic. 9 years ago
shirou 1ab11f7afd Merge pull request #167 from cgilling/cmdline_slice
process: add CmdlineSlice function for linux + freebsd
9 years ago
Chris Gilling 8c186ae593 process: add CmdlineSlice for darwin + windows
darwin will not perform correctly if there are spaces in the actual
arguments, in which case a single argument will be reported as
multple. Some CGO would be needed to get around this I think.

I couldn't find any good documentation on how windows handles
command line arguments with spaces inside the actual arguments, so
this implementation merely just splits on spaces.
9 years ago
shirou d6702c96bd Merge pull request #168 from cgilling/faster_linux_new_process
process: change linux NewProcess to only stat /proc/[pid]
9 years ago
Chris Gilling a3bbd9e3cd process: change linux NewProcess to only stat /proc/[pid]
Before it was doing a fillFromStatus() call which was much slower
and none of the information was needed, except by the Name() func
which now will call fillFromStatus() if p.name is not set.
9 years ago
Chris Gilling d098bf135f process: fix bug in CmdlineSlice where cmdline is empty
Sometimes (at least on linux) cmdline is empty, this was causing
a panic.
9 years ago