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

2679 Commits

Author SHA1 Message Date
shirou
62a52f910b
Merge pull request #1745 from wangyu-geek/add_anolis_family_in_host_linux
add anolis family with anolis platform in host/host_linux.go
v4.24.11
2024-11-16 22:29:20 +09:00
wangyu
8e62971eb0 add anolis family with anolis platform 2024-11-15 19:28:24 +08:00
Lomanic
aa9796d3d7
Merge pull request #1723 from shirou/dependabot/go_modules/golang.org/x/sys-0.26.0
chore(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0
v4.24.10
2024-10-28 23:40:06 +01:00
Lomanic
6be0508aeb
Merge pull request #1739 from shirou/dependabot/github_actions/actions/checkout-4.2.2
chore(deps): bump actions/checkout from 4.2.1 to 4.2.2
2024-10-24 11:46:35 +02:00
dependabot[bot]
137fd2acac
chore(deps): bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](eef61447b9...11bd71901b)

---
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-24 01:26:12 +00:00
shirou
aa47e0fde0
Merge pull request #1720 from n4nn31355/feat/win_mem_commit_total
feat(mem): Add windows commit stats
2024-10-23 21:09:47 +09:00
shirou
de435c3739
Merge pull request #1737 from shirou/dependabot/go_modules/github.com/ebitengine/purego-0.8.1
chore(deps): bump github.com/ebitengine/purego from 0.8.0 to 0.8.1
2024-10-22 11:00:38 +09:00
dependabot[bot]
9ae3f38658
chore(deps): bump github.com/ebitengine/purego from 0.8.0 to 0.8.1
Bumps [github.com/ebitengine/purego](https://github.com/ebitengine/purego) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/ebitengine/purego/releases)
- [Commits](https://github.com/ebitengine/purego/compare/v0.8.0...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/ebitengine/purego
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-22 01:29:59 +00:00
shirou
a19cedeb30
Merge pull request #1727 from uubulb/fix_sensors_darwin_arm64
sensors: avoid passing nil pointer to CFArrayGetCount
2024-10-13 22:05:28 +09:00
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
10d9c04c2e sensors: avoid passing nil pointer to CFArrayGetCount 2024-10-08 00:53:42 +08:00
dependabot[bot]
4cb0abd1d2
chore(deps): bump golang.org/x/sys from 0.25.0 to 0.26.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/sys/compare/v0.25.0...v0.26.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-10-07 01:19:22 +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
Vyacheslav Artemiev
3f241a0b08 feat(mem): Add windows commit stats
Closes Expose MemCommit info for Windows #1719
2024-10-04 01:57:36 +04: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