1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-10 19:29:14 +08:00

879 Commits

Author SHA1 Message Date
Sean Chittenden
d0e40ff723
Fix issues reported by golint. 2017-04-27 14:21:34 -07:00
Sean Chittenden
3834908232
Improve Command() handling and signal handling for launched processes. 2017-04-27 14:11:25 -07:00
shirou
70693b6a3d Merge pull request #351 from danielnelson/io-counters-for-names
Make IOCounters a variadic function
2017-04-14 12:53:08 +09:00
Daniel Nelson
3830ed16b4
Make IOCounters a variadic function
Remove IOCountersForNames that was recently added in favor of variadic
function with same capabilities.
2017-04-13 18:53:09 -07:00
WAKAYAMA Shirou
dfbb3e40da fix build bugs. 2017-04-10 22:24:36 +09:00
Shirou WAKAYAMA
fee973abda [linux]host: fix HostTempreture func 2017-04-10 22:06:37 +09:00
shirou
8e36fe6d8f Merge pull request #334 from dotpy3/macos-linux-temperatures
Added temperatures sensors for macOS and Linux
2017-04-10 21:54:07 +09:00
shirou
f5781cab54 Merge pull request #347 from danielnelson/io-counters-for-names
Add disk.IOCountersForNames function
2017-04-10 21:52:16 +09:00
Daniel Nelson
ab6db76df1
Fix IOCountersForNames on darwin 2017-04-07 11:40:49 -07:00
Daniel Nelson
3f35f001da
Add disk.IOCountersForNames function
Operates like disk.IOCounters, but accepts an array of names to limit
the results.
2017-04-06 18:00:54 -07:00
WAKAYAMA Shirou
e49a95f3d5 [host]darwin: PlatformInformation has been 5 values other is 4. v2.17.03 2017-04-06 22:17:56 +09:00
shirou
08ade552e3 Merge pull request #336 from rburchell/master
disk_darwin: Add support for IOCounters using IOKit
2017-04-06 22:11:41 +09:00
shirou
a00fdd2cc0 Merge pull request #342 from jgillich/patch-1
clarify return value of cpu.Percent()
2017-04-01 11:27:15 +09:00
Jakob Gillich
facb241c12 clarify return value of cpu.Percent() 2017-03-31 16:07:44 +02:00
Robin Burchell
b327360349 disk_darwin: Add support for IOCounters using IOKit 2017-03-30 18:58:03 +02:00
shirou
f18f7dcbae Merge pull request #338 from itnihao/patch-1
Add hostinfo Virtualization vmware
2017-03-30 13:27:26 +09:00
itnihao
490dbd4ea4 Add hostinfo Virtualization vmware 2017-03-25 00:19:22 +08:00
WAKAYAMA Shirou
3499dec5c0 [cpu]linux: handle hz values by tmm1 2017-03-23 21:36:54 +09:00
WAKAYAMA Shirou
a63f1aeeec use Processor entry as model name fallback by @tmm1 2017-03-23 21:35:50 +09:00
shirou
423a8ff2a6 Merge pull request #335 from shirou/fix_282
cpu[linux]: ignore cpufreq/cpuinfo_max_freq error
2017-03-21 10:27:21 +09:00
Eric Gourlaouen
22aefb460a Replaced sys by HostSys
Added TemperatureStat string test
2017-03-20 19:01:28 +01:00
WAKAYAMA Shirou
36b408780c cpu[linux]: ignore cpufreq/cpuinfo_max_freq error 2017-03-21 00:55:21 +09:00
Eric Gourlaouen
8b08ca5fdc added temperatures 2017-03-19 02:08:19 +01:00
shirou
98d5de7ce9 Merge pull request #332 from shirou/test_refactoring
refactoring
2017-03-15 23:36:14 +09:00
WAKAYAMA Shirou
bad1ce0748 fix typo 2017-03-15 23:32:55 +09:00
WAKAYAMA Shirou
30ebb9ca3a rename expected dir to testdata. 2017-03-15 23:01:06 +09:00
WAKAYAMA Shirou
f8ef680a47 error strings change to lowercase 2017-03-15 22:43:20 +09:00
shirou
4fb1a667c4 Merge pull request #331 from jen20/solaris-host
Host: Add Solaris support for Info(), BootTime(), Uptime()
2017-03-15 22:28:48 +09:00
James Nugent
d19ac24a84 mem: Skip TestVirtual_memory on Solaris 2017-03-15 08:10:23 -05:00
James Nugent
a34d626e17 Update README.rst for Solaris VirtualMemory support 2017-03-14 16:28:50 -05:00
James Nugent
b7760bb5a6 memory: Add basic Solaris VirtualMemory() support
This commit adds support for VirtualMemory() in package mem. The support
only extends to total memory capcity, since that is all that is required
in Nomad. It does take into account global versus non-global zones, and
does not use cgo.

This has been tested inside a zone in the Joyent public cloud for a
non-global zone, and in the global zone of a SmartOS virtual machine.
2017-03-14 16:28:50 -05:00
James Nugent
ae1d4ba818 Update README.md for Solaris package Host support 2017-03-14 16:05:17 -05:00
James Nugent
408005be94 host: Add Solaris support for Info, {Boot,Up}time
This commit adds support for Info(), BootTime() and Uptime() in package
Host. It uses no cgo, preferring to parse the output of `kstat -p`
instead.

Thanks go to @gfrey for the parsing logic for `/etc/release` and `uname`.
2017-03-14 16:05:17 -05:00
WAKAYAMA Shirou
d8bc9ca755 fix README table. 2017-03-14 10:02:36 +09:00
shirou
6f1a489187 Merge pull request #330 from jen20/update-readme-solaris
Update README.rst to reflect addition of Solaris
2017-03-14 09:59:04 +09:00
James Nugent
43c8d3f5f9 Update README.rst to reflect addition of Solaris 2017-03-13 16:05:35 -05:00
shirou
d4c8874c19 Merge pull request #328 from jen20/solaris-cpu
cpu: Implement Solaris support for Info()
2017-03-14 01:51:04 +09:00
James Nugent
49ed700c0d cpu: Implement Solaris support for Info()
This commit adds Solaris(^1) support for the Info() function of package
cpu, with the exception of the L2 cache size which is not trivially
available(^2).

Support is implemented by parsing the output of `isainfo -b -v` (for the
instruction set flags), and `psr-info -p -v` for other information.
Example outputs from a range of different size VMs and Joyent containers
are included as part of the tests.

(^1): This has only been tested with Illumos in the form of SmartOS. I
believe it to be portable to other Illumos distributions but have not
tested on Oracle Solaris.

(^2): Enough support is added here to be usable for my port of
HashiCorp's Nomad to SmartOS.
2017-03-12 21:19:42 -05:00
shirou
35e7422f01 Merge pull request #325 from simar7/cpu-microcode
cpu: Expose CPU microcode information
2017-03-12 23:19:58 +09:00
Simarpreet Singh
5a4c90ad5f cpu: Expose CPU microcode information
This commit exposes the CPU microcode information.

Signed-off-by: Simarpreet Singh <simar@opendns.com>
2017-03-07 16:18:20 -08:00
shirou
23f4b7eb14 Merge pull request #323 from molecul/patch-2
Fix for getMachineGuid() return value
2017-03-03 22:53:34 +09:00
Shirou WAKAYAMA
85d3530ae8 fix test. 2017-03-03 22:35:18 +09:00
shirou
abc5c87f27 Merge pull request #324 from molecul/patch-1
Add new test 'TestHostGuid'
2017-03-03 22:09:40 +09:00
Alexey Galkin
b1f19a76c7 Fix for getMachineGuid() return value
getMachineGuid() function return a empty value in x86 windows builds.
Issue: https://github.com/shirou/gopsutil/issues/322
2017-03-03 16:30:53 +04:00
Alexey Galkin
2287b035c8 Add new test 'TestHostGuid'
For issue: https://github.com/shirou/gopsutil/issues/322
2017-03-03 16:28:49 +04:00
shirou
d371ba1293 Merge pull request #320 from tychoish/close-files-more-often
close open files
v2.17.02
2017-02-22 23:42:03 +09:00
tycho garen
22c56d292e close open files 2017-02-22 08:46:23 -05:00
shirou
f8610342e4 Merge pull request #319 from toshipiazza/master
Fixes memory leak
2017-02-22 17:38:10 +09:00
Toshi Piazza
5e1c2fa23b Fixes memory leak 2017-02-22 02:53:45 -05:00
shirou
c14b242c60 Merge pull request #316 from tychoish/cpu-fix-linux
fix panic in starvation situations
2017-02-21 22:11:56 +09:00