Skip to content

Releases: shirou/gopsutil

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

v4.24.11

01 Dec 05:21
62a52f9
Compare
Choose a tag to compare

What's Changed

host

  • add anolis family with anolis platform in host/host_linux.go by @wangyu-geek in #1745

New Contributors

Full Changelog: v4.24.10...v4.24.11

v4.24.10

01 Nov 02:08
aa9796d
Compare
Choose a tag to compare

What's Changed

cpu

  • [cpu][disk][netbsd] Generate arm-specific definitions by @Lomanic in #1731

mem

Other Changes

  • sensors: avoid passing nil pointer to CFArrayGetCount by @uubulb in #1727

New Contributors

Full Changelog: v4.24.9...v4.24.10

v4.24.9

01 Oct 04:36
2e10d9f
Compare
Choose a tag to compare

Important Change

Since #1702, the Darwin implementation has been switched from cgo to purego (Great contribution from @uubulb). As a result, cgo has been removed from the Darwin implementation, making cross-compilation easier. We believe this change will not have any impact, but if you encounter any issues, please create an issue.

What's Changed

cpu, mem, sensors, disk, process on darwin

  • feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations by @uubulb in #1702

process

  • [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep by @Lomanic in #1706
  • implement process:NumFDs for Windows by @al-online in #1712
  • Fix resolution for process create time limited to seconds by @joshiste in #1713

Other Changes

  • fix: remove coverall and godocs.io badge from README by @shirou in #1705
  • [common] add HOST_PROC_MOUNTINFO to EnvMap by @atoulme in #1707
  • Fix error message typo in sensors_linux by @henrygd in #1715

New Contributors

Full Changelog: v4.24.8...v4.24.9

v4.24.8

01 Sep 05:21
74cb403
Compare
Choose a tag to compare

What's Changed

disk

  • fix(IOCountersWithContext): Fix the issue of not using names to fil ter devices in func IOCountersWithContext of the windows implementation by @zmyzheng in #1688
  • [disk][windows]: ignore network drive when not ready by @shirou in #1699

process

  • Fix parsing of /proc/pid/smaps when path is empty by @pgimalac in #1691
  • Refactoring the algorithm for calculating CPU usage by @TheBestLL in #1692
  • Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size by @fivitti in #1694

Other Changes

New Contributors πŸŽ‰

Full Changelog: v4.24.7...v4.24.8

v4.24.7

01 Aug 01:58
1915e93
Compare
Choose a tag to compare

Important Notice Regarding Value Changes on mem.SwapMemory() on Windows

In change #1677, the values returned by mem.SwapMemory() on Windows have been significantly revised. Previously, these values were calculated from the PERFORMANCE_INFORMATION structure of the GetPerformanceInfo win32 function, but this calculation was incorrect. Consequently, it has been adjusted to align with the psutil implementation. As a result, the values returned by mem.SwapMemory() are expected to differ greatly from previous values.

What's Changed

docker

  • fix: docker_memory in centos_7.5 & docker_1.13.1 by @coderZoe in #1670

mem

  • [windows][mem]: change to use Performance Counter on SwapMemory. by @shirou in #1677

Other Changes

  • fix: read temperature sensors darwin arm by @Girbons in #1672
  • fix: remove macos11 and add ubuntu-24.04 on GitHub runner list. by @shirou in #1676

New Contributors

Full Changelog: v4.24.6...v4.24.7

v4.24.6

01 Jul 05:52
865b8c3
Compare
Choose a tag to compare

What's Changed

host

sensors

Other Changes

  • Fix boot time not returning stat file value by @govrin in #1655

New Contributors

Full Changelog: v4.24.5...v4.24.6

What's Changed

host

Other Changes

New Contributors

Full Changelog: v4.24.5...v4.24.6