1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

2667 Commits

Author SHA1 Message Date
shirou
c9da2cc0aa
Merge pull request #1731 from Lomanic/issue1645
[cpu][disk][netbsd] Generate arm-specific definitions
2024-10-12 21:37:56 +09:00
shirou
44c71b62c0
Merge pull request #1722 from uubulb/fix_windows_mem
fix(mem): possible memory leak on Windows
2024-10-11 15:45:29 +09:00
shirou
30457973b5
Merge pull request #1735 from shirou/dependabot/github_actions/actions/upload-artifact-4.4.3
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
2024-10-10 10:12:24 +09:00
shirou
7422a58e32
Merge pull request #1733 from shirou/dependabot/github_actions/actions/cache-4.1.1
chore(deps): bump actions/cache from 4.0.2 to 4.1.1
2024-10-10 10:12:11 +09:00
dependabot[bot]
c30c83bf4a
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](50769540e7...b4b15b8c7c)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-10 01:05:56 +00:00
dependabot[bot]
9fc4f64913
chore(deps): bump actions/cache from 4.0.2 to 4.1.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.1.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c45773b62...3624ceb22c)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 01:04:20 +00:00
Lomanic
68512056e8
Merge pull request #1729 from shirou/dependabot/github_actions/actions/checkout-4.2.1
chore(deps): bump actions/checkout from 4.2.0 to 4.2.1
2024-10-09 00:55:07 +02:00
Lomanic
ec973203e9 [disk][netbsd] Generate cpu_netbsd_arm.go via mktypes.sh 2024-10-09 00:20:53 +02:00
Lomanic
c37a5eba8c [cpu][netbsd] Fix "undefined: cpuTimes" error at compile time on arm
Fixes #1645
2024-10-09 00:20:24 +02:00
dependabot[bot]
9732546382
chore(deps): bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 01:50:59 +00:00
uubulb
3773f6fe43 fix(mem): possible memory leak on Windows 2024-10-05 15:29:36 +08:00
shirou
45e3591650
Merge pull request #1714 from shirou/dependabot/github_actions/actions/checkout-4.2.0
chore(deps): bump actions/checkout from 4.1.7 to 4.2.0
2024-10-04 10:21:31 +09:00
dependabot[bot]
3c43ac0060
chore(deps): bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 01:12:46 +00:00
shirou
023f0cf765
Merge pull request #1721 from shirou/dependabot/github_actions/golangci/golangci-lint-action-6.1.1
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
2024-10-04 10:12:07 +09:00
dependabot[bot]
b048ca575d
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](aaa42aa062...971e284b60)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 01:04:29 +00:00
shirou
2e10d9f7d0
Merge pull request #1715 from henrygd/master
Fix error message typo in sensors_linux
v4.24.9
2024-10-01 10:17:32 +09:00
Henry Dollman
112f4c00b7 Fix error message typo in sensors_linux 2024-09-26 14:13:46 -04:00
shirou
7ec134321c
Merge pull request #1713 from joshiste/joshiste-precise-create-time
Fix resolution for process create time limited to seconds
2024-09-26 22:58:15 +09:00
shirou
4140cda4ac
Merge pull request #1702 from uubulb/purego_darwin
feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations
2024-09-26 22:37:05 +09:00
Johannes Edmeier
3dc12249d3
Allow subsecont precision for process create time 2024-09-24 18:50:58 +02:00
uubulb
f56b53a155 update purego 2024-09-24 23:11:59 +08:00
shirou
fdc3c05c92
Merge pull request #1712 from al-online/numfds_for_windows
implement process:NumFDs for Windows
2024-09-24 18:50:13 +09:00
huang
462736cb8b add comment for NumFDsWithContext 2024-09-23 22:05:49 +08:00
UUBulb
86b68e8d4f
Merge branch 'master' into purego_darwin 2024-09-20 22:27:05 +08:00
uubulb
9e6efdb991 update disk & cpu & process 2024-09-20 22:24:12 +08:00
huang
cbc32afb65 implement NumFDs for Windows 2024-09-19 23:59:11 +08:00
shirou
6c06ac987e
Merge pull request #1707 from atoulme/add_proc_mountinfo
[common] add HOST_PROC_MOUNTINFO to EnvMap
2024-09-15 22:01:11 +09:00
shirou
7802a18557
Merge pull request #1703 from shirou/dependabot/go_modules/golang.org/x/sys-0.25.0
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
2024-09-14 16:41:37 +09:00
shirou
e89f21d7dc
Merge pull request #1706 from Lomanic/issue1698
[process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
2024-09-11 22:28:07 +09:00
Antoine Toulme
811185d3fe [common] add HOST_PROC_MOUNTINFO to EnvMap 2024-09-10 08:29:09 -07:00
Lomanic
76ccf0d220 [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
pgrep -P $PID exits with status of 1 (and nothing in stdout nor stderr) both if
a process doesn't exist or it doesn't have child processes, so we don't
use it anymore on these OSes. We sort PIDs as pgrep did.

Also deprecate the ErrorNoChildren error when there are no child processes,
this is erroneous (simply check for the length of the returned slice, plus
this is not an error per se), this was only returned on linux anyway.

Fixes #1698
2024-09-10 15:34:36 +02:00
shirou
784157497b
Merge pull request #1705 from shirou/feat/remove_godoc_and_coverall
fix: remove coverall and godocs.io badge from README
2024-09-07 00:09:44 +09:00
shirou
97b1aaee94 fix: remove coverall and godocs.io badge from README 2024-09-07 00:00:45 +09:00
dependabot[bot]
f824d50add
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/sys/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-05 01:03:44 +00:00
uubulb
701a74be41 feat(cpu, mem, sensors)(darwin): cgo-free implementations 2024-09-04 23:23:10 +08:00
shirou
211eb8ccb4
Merge pull request #1701 from shirou/dependabot/github_actions/actions/upload-artifact-4.4.0
chore(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0
2024-09-02 10:39:47 +09:00
dependabot[bot]
050902aeaa
chore(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](834a144ee9...50769540e7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 01:12:28 +00:00
shirou
74cb403730
Merge pull request #1694 from fivitti/master
Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size
v4.24.8
2024-08-26 23:54:23 +09:00
shirou
7404c1f39d
Merge pull request #1699 from shirou/feat/win_disk_ignore_remote_drive_on_error
[disk][windows]: ignore network drive when not ready
2024-08-26 23:52:13 +09:00
shirou
72d3ba4191 [disk][windows]: ignore network drive when not ready 2024-08-25 22:49:43 +09:00
Cnpt
829f2fafbd
Refactoring the algorithm for calculating CPU usage (#1692)
refactor(process): Refactoring the algorithm for calculating CPU usage
2024-08-24 21:46:32 +09:00
shirou
2a37a1d32b
Merge pull request #1691 from pgimalac/pgimalac/fix-proc-smaps-parsing
Fix parsing of /proc/pid/smaps when path is empty
2024-08-24 17:21:17 +09:00
shirou
2c51005a94
Merge pull request #1697 from shirou/feature/fix_golangclilint_gosec
fix golangcilint errors, ignore gosec G115
2024-08-24 15:50:56 +09:00
shirou
37f531010d fix golangcilint errors, ignore gosec G115 2024-08-23 08:22:42 +00:00
shirou
904a5a4842
Merge pull request #1695 from Yurunsoft/patch-1
Fix badge link in README.md
2024-08-21 13:41:35 +09:00
Yurun
39c93c6a20
Fix badge link in README.md 2024-08-21 10:53:43 +08:00
Slawek Figiel
977269202e fix: handle invalid KinfoProc size on BSD systems 2024-08-20 12:40:07 +02:00
Pierre Gimalac
d4ac231298
Merge branch 'master' of github.com:pgimalac/gopsutil into pgimalac/fix-proc-smaps-parsing 2024-08-19 10:36:07 +02:00
Pierre Gimalac
a1f9e69b5d
fix: join path elements in case it contains spaces 2024-08-19 10:34:55 +02:00
shirou
e8aa2144bd
Merge pull request #1667 from shirou/dependabot/github_actions/actions/checkout-4.1.7
chore(deps): bump actions/checkout from 4.1.5 to 4.1.7
2024-08-17 23:33:52 +09:00