|
|
|
@ -5,7 +5,13 @@
|
|
|
|
|
This is a port of psutil (https://github.com/giampaolo/psutil). The
|
|
|
|
|
challenge is porting all psutil functions on some architectures.
|
|
|
|
|
|
|
|
|
|
## v3 migration
|
|
|
|
|
## migration
|
|
|
|
|
|
|
|
|
|
### v4 migration
|
|
|
|
|
|
|
|
|
|
See v4 release note.
|
|
|
|
|
|
|
|
|
|
### v3 migration
|
|
|
|
|
|
|
|
|
|
From v3.20.10, gopsutil becomes v3 which breaks backwards compatibility.
|
|
|
|
|
See [v3Changes.md](_tools/v3migration/v3Changes.md) for more detailed changes.
|
|
|
|
@ -15,10 +21,10 @@ See [v3Changes.md](_tools/v3migration/v3Changes.md) for more detailed changes.
|
|
|
|
|
gopsutil tag policy is almost same as Semantic Versioning, but
|
|
|
|
|
automatically increases like [Ubuntu versioning](https://calver.org/).
|
|
|
|
|
|
|
|
|
|
For example, v2.17.04 means
|
|
|
|
|
For example, v4.24.04 means
|
|
|
|
|
|
|
|
|
|
- v2: major version
|
|
|
|
|
- 17: release year, 2017
|
|
|
|
|
- v4: major version
|
|
|
|
|
- 24: release year, 2024
|
|
|
|
|
- 04: release month
|
|
|
|
|
|
|
|
|
|
gopsutil aims to keep backwards compatibility until major version change.
|
|
|
|
@ -52,7 +58,7 @@ package main
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/v3/mem"
|
|
|
|
|
"github.com/shirou/gopsutil/v4/mem"
|
|
|
|
|
// "github.com/shirou/gopsutil/mem" // to use v2
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -122,7 +128,7 @@ Be very careful that enabling the cache may cause inconsistencies. For example,
|
|
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
|
|
See https://pkg.go.dev/github.com/shirou/gopsutil/v3 or https://godocs.io/github.com/shirou/gopsutil/v3
|
|
|
|
|
See https://pkg.go.dev/github.com/shirou/gopsutil/v4 or https://godocs.io/github.com/shirou/gopsutil/v4
|
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|