Skip to content

Releases: shirou/gopsutil

v4.25.9

01 Oct 01:35
208a0f8
Compare
Choose a tag to compare

What's Changed

cpu

disk

process

  • refactor: use slices.Contains to simplify code by @wmypku in #1906

Other Changes

New Contributors

Full Changelog: v4.25.8...v4.25.9

v4.25.8

01 Sep 04:19
02f5628
Compare
Choose a tag to compare

Important Change

Starting from this release, VirtualMemoryStat.Used on Linux is now calculated based on MemAvailable in meminfo. This may cause a difference of approximately 6–10% compared to the previous calculation.

To address this, we have introduced an opt-out mechanism. You can disable the new calculation by setting the context key WillBeDeletedOptOutMemAvailableCalc to true. Please note that this option is undocumented and will be removed in six months (Feb. 2026).

For more details, see #1873 and #1882.

What's Changed

cpu

disk

  • [disk][process][freebsd]: remove binary.go from common by @shirou in #1907

mem

  • [mem][linux]: Used calculated from Total and Available by @shirou in #1882

process

Other Changes

  • chore: enable fatcontext linter by @mmorel-35 in #1885
  • chore: enable time-date and time-equal rules from revive by @mmorel-35 in #1891
  • Fix: use compatible perfstat version to fix aix cgo builds by @gremat in #1910

New Contributors

Full Changelog: v4.25.7...v4.25.8

v4.25.7

01 Aug 03:58
4903902
Compare
Choose a tag to compare

What's Changed

disk

  • fix(disk): handle NVMe controller notation in IOCounters on Linux by @skartikey in #1878

mem

process

  • process: Fix parsing of uid/gid's to handle full uint32 range by @halaney in #1887

Other Changes

New Contributors

Full Changelog: v4.25.6...v4.25.7

v4.25.6

01 Jul 02:38
d89a81f
Compare
Choose a tag to compare

What's Changed

disk

  • [disk][linux]: fix parsing mount option when use 1/mounts on Partition by @shirou in #1861
  • Fetch stats from folder mounted volumes by @dloucasfx in #1534

mem

  • feat(exwindows): expose phys and pagefile memory by @kruskall in #1868

process

  • fix: optimize performance of process.OpenFiles() by @NitroCao in #1866

Other Changes

New Contributors

Full Changelog: v4.25.5...v4.25.6

v4.25.5

01 Jun 05:43
15412ac
Compare
Choose a tag to compare

What's Changed

cpu

docker

host

Other Changes

New Contributors

Full Changelog: v4.25.4...v4.25.5

v4.25.4

01 May 04:01
3ba33b4
Compare
Choose a tag to compare

What's Changed

cpu

disk

host

  • refactor: using fmt.Errorf in InfoWithContext by @s0ders in #1840

Other Changes

New Contributors

Full Changelog: v4.25.3...v4.25.4

v4.25.3

01 Apr 04:21
1e1ad22
Compare
Choose a tag to compare

Important Notice

Starting from this release, we have set the Go version in go.mod to 1.23. Moving forward, we plan to continuously update it to the second most recent Go release.

We understand that gopsutil runs on various platforms, and some applications using it may only support older Go versions. With this release, those applications might no longer be able to build. However, as discussed in #1804, we made this change because golang.org/x/sys, which gopsutil depends on, has adopted a policy of continuously updating its Go version.

That said, we intend to be conservative about syntax changes and avoid unnecessary modifications whenever possible.

What's Changed

disk

  • add support for get disk serial number on darwin by @samburba in #1791

host

  • [net][host][aix] Fix build and Makefile by @Lomanic in #1809
  • [host][process]: fix type missmatch test. by @shirou in #1821
  • [host]: fix potential error on CI test on Windows. by @shirou in #1830

process

  • feat(process_windows): Support collecting PageFault count in Windows by @zmyzheng in #1769

Chore

Other Changes

New Contributors

Full Changelog: v4.25.2...v4.25.3

v4.25.2

01 Mar 04:35
bcd0dfa
Compare
Choose a tag to compare

What's Changed

cpu

net

  • [windows]: fix lint error about use-any by @shirou in #1795

process

Other Changes

New Contributors

Full Changelog: v4.25.1...v4.25.2

v4.25.1

01 Feb 01:57
90e5996
Compare
Choose a tag to compare

What's Changed

Other Changes

  • chore: explicit revive rules by @mmorel-35 in #1778
  • chore: call actions/checkout before actions/setup-go to benefit from native cache by @mmorel-35 in #1779

Full Changelog: v4.24.12...v4.25.1

v4.24.12

01 Jan 02:03
252dcbf
Compare
Choose a tag to compare

What's Changed

cpu

mem

net

process

sensors

  • fix[darwin]: memory leak and string corruption in ARM Mac temperature sensors by @chuangbo in #1767

Other Changes

  • fix[github]: deprecate macos-12, add macos-15 by @shirou in #1760
  • [doc]: Update README for supported metrics. by @shirou in #1766

New Contributors

Full Changelog: v4.24.11...v4.24.12