[v3 migration] add more changelog and README.

pull/938/head
shirou 4 years ago
parent b7e74218ca
commit 09af60d248

@ -13,6 +13,10 @@ gopsutil: psutil for golang
This is a port of psutil (https://github.com/giampaolo/psutil). The challenge is porting all
psutil functions on some architectures.
v3 migration
---------------
from v3.20.10, gopsutil becomes v3 which breaks backawards compatiblity. See [v3Changes.md](_tools/v3migration/v3Changes.md) more detail changes.
Tag semantics
-------------------------
@ -51,7 +55,6 @@ All works are implemented without cgo by porting c struct to golang struct.
Usage
---------
Note: gopsutil v2 breaks compatibility. If you want to stay with compatibility, please use v1 branch and vendoring.
.. code:: go
@ -101,7 +104,7 @@ see http://godoc.org/github.com/shirou/gopsutil
Requirements
-----------------
- go1.7 or above is required.
- go1.11 or above is required.
More Info

@ -1,15 +1,17 @@
# v2 to v3 changes
- v3 is in the `v3` directory
- create v3 directory
- Remove process.NetIOCounters (#429)
- rename memoryLimitInBbytes JSON key in docker (#464)
- fix cgroup filename (#464)
- RLimit is now uint64 (#364)
- mem.VirtualMemoryStat JSON fields capitalization (#545)
- [process] RLimit is now uint64 (#364)
- [process] Remove process.NetIOCounters (#429)
- [docker] fix typo of memoryLimitInBbytes (#464)
- [mem] VirtualMemoryStat JSON fields capitalization (#545)
- various JSON field name and some of Variable name have been changed. see v3migration.sh
- Become private various kind of platform dependent values/constants such as process.GetWin32Proc.
### not yet
- Determine if process is running in the foreground (#596)
- [all] various kind of platform dependent values/constants such as process.GetWin32Proc is now private. see v3migration.sh
- [process] process.Status() now returns []string. and status string is "Running", not just "R". defined in process.go. (#596)
- [docker] `CgroupCPU()` now returns `*CgroupCPUStat` with Usage (#590 and #581)
- [disk] `disk.Opts` is now string[], not string. (related to #955)
- [host] Fixed temperature sensors detection in Linux (#905)
- [disk] `GetDiskSerialNumber()` is now `SerialNumber()` and spread to all platform
- [disk] `GetLabel ()` is now `Label()` and spread to all platform
- [net] Change net.InterfaceStat.Addrs to InterfaceAddrList (#226)
Loading…
Cancel
Save