mmorel-35
1e6b445a8a
gofumpt
2021-12-22 21:54:41 +00:00
shirou
0fdf65fa3e
Change to use yusufpapurcu/wmi from StackExchange/wmi.
2021-11-20 11:36:30 +00:00
kestrel
3dabe50107
feat(process): implement the 'OpenFilesWithContext' function of the windows system
2021-10-11 05:30:29 +08:00
Johannes Drummer
76fb312c4b
delete unused PdhAddCounterW
2021-02-06 13:11:41 +01:00
Johannes Drummer
82b235c9f5
v2 windows counters on non english systems
2021-02-06 11:01:29 +01:00
AtakanColak
498a39984d
tidy comments
2020-11-06 11:07:02 +03:00
AtakanColak
2c98f69e11
add load v2
...
tidied up common/windows
added load benchmark for load_test
cpu percent is used as load if queue is zero
2020-11-02 16:54:39 +03:00
AtakanColak
24e6d6d350
add load to windows
2020-10-22 17:44:11 +03:00
Mauro Leggieri
00957cfedc
Fixed slow command line retrieval on Windows
2020-04-30 22:44:43 -03:00
Lomanic
47323f9ad5
[process][windows] Fix #586 use win32 API in process.Exe() instead of slow WMI call
...
This is faster by a factor of 100.
References:
5f4287d17f/psutil/_pswindows.py (L221)
921870d540/psutil/_psutil_windows.c (L1211)
921870d540/psutil/_psutil_windows.c (L626)
2019-06-16 23:03:27 +02:00
Lomanic
ef54649286
[windows] Use windows.NewLazySystemDLL to (possibly) prevent DLL hijacking
...
Might be useless because of https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications
but better be safe than sorry.
Ref: https://github.com/shirou/gopsutil/issues/570#issuecomment-413951653
2018-08-18 22:52:41 +02:00
sada
8dd42707e2
windows: fix WithContext functions
...
set timeout only if parent context doesn't set.
2018-02-12 13:26:17 -08:00
leaf
65598d98cc
To prevent hang if wmi.Query hangs, add a context-aware wrapper for it.
2017-11-20 10:13:27 -08:00
Derek Brown
7c807c86e4
Add implementation of SwapMemory() for windows
2017-09-18 18:14:29 -07:00
Sean Chittenden
635b971c0e
Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}`
2017-06-02 13:51:00 -07:00
Daniel Theophanes
0af895258e
common: rename package common to internal/common. Add ENV helper funcs.
...
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.
Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.
Fixes #100
2015-10-18 20:40:01 -07:00