- 29 2月, 2016 4 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
由 shirou 提交于
process: add CmdlineSlice function for linux + freebsd
-
由 Chris Gilling 提交于
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.
-
由 shirou 提交于
process: change linux NewProcess to only stat /proc/[pid]
-
- 28 2月, 2016 3 次提交
-
-
由 Chris Gilling 提交于
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.
-
由 Chris Gilling 提交于
Sometimes (at least on linux) cmdline is empty, this was causing a panic.
-
由 Chris Gilling 提交于
This allows for getting more exact information about each argument especially if there are arguments that have spaces in them. This was not implemented for darwin or for windows because they both currently have not way of properly parsing the cmdline string. Darwin parses the output of 'ps' which is already whitespace segmented, and windows just has the cmdline string.
-
- 27 2月, 2016 1 次提交
-
-
由 shirou 提交于
[load]all: add Misc in load to get miscellaneous host info from /proc…
-
- 24 2月, 2016 2 次提交
-
-
由 shirou 提交于
Add test for process.CPUTimes()
-
由 Johan Walles 提交于
-
- 23 2月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 22 2月, 2016 7 次提交
-
-
由 shirou 提交于
Document + add tests for for mem.VirtualMemory()
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
This change changes and documents the (previously undocumented) behavior of Used to "RAM used by programs". We also remove the undocumented and unused Shared field of that struct. So with this change in place, the VirtualMemoryStruct contains: * three human-consumable fields for Total, Used and Available memory * one human-consumable UsedPercentage field * a number of kernel specific fields
-
- 21 2月, 2016 2 次提交
-
-
由 shirou 提交于
Use OS calls rather than exec() to get memory stats on Darwin
-
由 Johan Walles 提交于
-
- 20 2月, 2016 7 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
Before this change we used to exec() various binaries to find out memory information. While this worked, it was awfully slow. And if somebody would want to compute how many percent of available memory all PIDs on the system uses, that would take almost ten seconds on my laptop with the previous implementation. This implementation fares a lot better, and is smaller.
-
由 Johan Walles 提交于
-
- 17 2月, 2016 3 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
由 shirou 提交于
process: Implement MemoryPercent() for Darwin
-
由 Johan Walles 提交于
It calls mem.VirtualMemory() and process.MemoryInfo(), so on the platforms where those work MemoryPercent() will as well. Tested on Darwin.
-
- 12 2月, 2016 10 次提交
-
-
由 shirou 提交于
Add build check
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 WAKAYAMA shirou 提交于
-
由 shirou 提交于
add circle.yml.
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-