1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-08 19:29:25 +08:00

2370 Commits

Author SHA1 Message Date
shirou
0e9f13304d
Merge pull request #1524 from shirou/feature/replace_ioutil
chore: replace deprecated ioutil package to os and io
2023-09-11 08:56:26 +09:00
Lomanic
60484418d3
Merge pull request #1521 from shirou/dependabot/github_actions/actions/checkout-4.0.0
chore(deps): bump actions/checkout from 3.6.0 to 4.0.0
2023-09-08 21:30:26 +02:00
shirou
0665cafa1b chore: replace deprecated ioutil package to os and io 2023-09-08 17:05:14 +00:00
shirou
cdd7dae8c7
Merge pull request #1523 from shirou/dependabot/github_actions/actions/cache-3.3.2
chore(deps): bump actions/cache from 3.3.1 to 3.3.2
2023-09-08 11:34:42 +09:00
dependabot[bot]
1d4b8c3989
chore(deps): bump actions/cache from 3.3.1 to 3.3.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](88522ab9f3...704facf57e)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 01:37:26 +00:00
shirou
de26169f19
Merge pull request #1522 from shirou/dependabot/github_actions/actions/upload-artifact-3.1.3
chore(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
2023-09-07 10:27:58 +09:00
dependabot[bot]
2d2033ed7d
chore(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](0b7f8abb15...a8a3f3ad30)

---
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>
2023-09-07 01:12:39 +00:00
dependabot[bot]
eadf3f7a33
chore(deps): bump actions/checkout from 3.6.0 to 4.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...3df4ab11eb)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 01:50:24 +00:00
shirou
d80af8bf10
Merge pull request #1519 from kevinconaway/kevinconaway/mem-anonhugepages
Add support for reading AnonHugePages from /proc/meminfo
2023-09-04 21:59:05 +09:00
shirou
680de57df2
Merge pull request #1520 from shirou/dependabot/go_modules/golang.org/x/sys-0.12.0
chore(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0
2023-09-04 11:24:13 +09:00
dependabot[bot]
85d37b91b3
chore(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.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>
2023-09-04 01:53:34 +00:00
Kevin Conaway
7f4efa5358 Add support for reading AnonHugePages from /proc/meminfo
This commit adds support for reading the `AnonHugePages` field from `/proc/meminfo`.

The values in this field allow monitoring the [THP](https://www.kernel.org/doc/Documentation/vm/transhuge.txt) usage by systems that use this type of memory
2023-08-31 15:06:23 -04:00
shirou
faad806080
Merge pull request #1518 from shirou/feature/remove_circleci
chore: change CIRCLECI environment variable to CI.
v3.23.8
2023-08-30 23:16:23 +09:00
shirou
febdeab871 chore: change CIRCLECI environment variable to CI. 2023-08-30 14:07:47 +00:00
shirou
a09263d9e8
Merge pull request #1514 from atoulme/faster_file_read
Fix Processes() calls with many cores
2023-08-29 22:08:12 +09:00
Antoine Toulme
54c31d884d
Revert "test results"
This reverts commit ae119d36b8280344151f33a5db5c4a5d58faff89.
2023-08-27 10:01:46 -07:00
Antoine Toulme
ae119d36b8 test results 2023-08-27 09:58:08 -07:00
Antoine Toulme
6fff1c0e99
proper benchmark 2023-08-27 09:42:51 -07:00
shirou
89575bdf5a
Merge pull request #1513 from shirou/dependabot/github_actions/actions/checkout-3.6.0
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
2023-08-26 20:59:27 +09:00
Antoine Toulme
4ed0f1436a
return err if not EOF 2023-08-25 14:39:29 -07:00
Antoine Toulme
ca71a6db3c
lint 2023-08-25 14:38:11 -07:00
Antoine Toulme
a48fd71137
Revert "send results"
This reverts commit a7a94986fb9b6deeef51eb25c71a73c1d1c9becc.
2023-08-25 14:33:37 -07:00
Antoine Toulme
a7a94986fb send results 2023-08-25 14:18:48 -07:00
Antoine Toulme
4bc9e37b0f
faster file read 2023-08-25 13:54:26 -07:00
dependabot[bot]
47860a93c2
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](c85c95e3d7...f43a0e5ff2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 01:52:36 +00:00
shirou
6084c1e2a4
Merge pull request #1508 from gdvalle/gtd.disk.serial-num-fix
fix IOCounters() SerialNumber enumeration
2023-08-20 22:25:10 +09:00
Greg Dallavalle
0a23dc690f comment cleanup 2023-08-18 09:17:37 -05:00
shirou
8bcde848c1
Merge pull request #1504 from shirou/feature/host_remove_double_quote_on_lsb
[host][linux]: remove double quote from lsb release info
2023-08-17 23:51:07 +09:00
Greg Dallavalle
b2d1f05f08 update comment 2023-08-17 09:38:49 -05:00
Greg
aa4c84c6b3
Update disk/disk_linux.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2023-08-17 09:37:46 -05:00
Greg Dallavalle
0ca6266393 fix IOCounters() SerialNumber enumeration 2023-08-16 21:36:08 -05:00
shirou
d428168624
Merge pull request #1506 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3.7.0
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
2023-08-15 15:20:36 +09:00
dependabot[bot]
7e5f28a19a
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](639cd343e1...3a91952989)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-15 01:25:55 +00:00
shirou
3748c19402 [host][linux]: remove double quote from lsb release info
fix: #1502
2023-08-13 12:01:01 +00:00
shirou
8ecc0c6804
Merge pull request #1501 from ozanh/master
fix: fixed windows disk package leaks
2023-08-11 17:20:09 +09:00
Ozan HACIBEKİROĞLU
1ed7ea75d7 fix: fixed windows disk package leaks
- fixed goroutine leak in PartitionsWithContext
- closed registry handle in init
2023-08-10 14:48:26 +03:00
shirou
3bddb2a785
Merge pull request #1499 from shirou/dependabot/go_modules/github.com/tklauser/go-sysconf-0.3.12
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
2023-08-09 11:34:23 +09:00
shirou
2e6d50e11d
Merge pull request #1500 from shirou/dependabot/github_actions/actions/setup-go-4.1.0
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
2023-08-09 11:33:46 +09:00
dependabot[bot]
95d458e650
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](fac708d667...93397bea11)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 01:15:59 +00:00
dependabot[bot]
b8b6f3d675
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/tklauser/go-sysconf/releases)
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.11...v0.3.12)

---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 01:12:27 +00:00
shirou
cbd528875a
Merge pull request #1498 from chouquette/fix_linux_mem_metrics
mem: linux: fix vmstat field names
2023-08-08 21:58:18 +09:00
Hugo Beauzée-Luyssen
8181a441a8
mem: linux: fix vmstat field names
The field names are read from /proc/vmstat were capitalized as their
output fields by mistake
2023-08-08 13:53:23 +02:00
shirou
78feb45202
Merge pull request #1496 from shirou/dependabot/go_modules/golang.org/x/sys-0.11.0
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
2023-08-07 12:26:33 +09:00
dependabot[bot]
9d8e56e0f7
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.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>
2023-08-07 01:41:42 +00:00
shirou
31d6b3089d
Merge pull request #1495 from kishen-v/powerISACheck
Enable setting of vendor and related information for all Power versions
2023-08-05 22:57:57 +09:00
shirou
0b4d681d64
Merge pull request #1488 from Lomanic/issue1485
[process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
v3.23.7
2023-07-30 10:26:00 +09:00
Kishen V
63e0b63ab8 Enable setting of vendor and related information for all Power versions 2023-07-25 09:59:38 +05:30
shirou
c43eaea6a7
Merge pull request #1492 from shirou/dependabot/github_actions/actions/labeler-4.3.0
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
2023-07-11 16:47:03 +09:00
dependabot[bot]
9421df8699
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](0967ca812e...ac9175f8a1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-11 01:42:30 +00:00
Lomanic
8b96d2e9e2 [process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
e2c79a1 started to blindly set the process name to the full path (instead of the basename) of the cmdline exectuable
if the process name from the process comm was truncated on linux. Python psutil never did that, and this is just wrong
for python (or any executable interpreted script) where the process name is not the interpreter binary but the script
itself.

A new test to check process name value against psutil value is added here, which would hopefully catch any potential
future changes in psutil.

Reverts #542

Fixes #1485
2023-07-09 00:43:24 +02:00