File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,22 @@ var (
33
33
)
34
34
35
35
type processMemoryCounters struct {
36
- // https://docs.microsoft.com/en-us/windows/desktop/api/psapi/ns-psapi-_process_memory_counters_ex
36
+ // System interface description
37
+ // https://docs.microsoft.com/en-us/windows/desktop/api/psapi/ns-psapi-process_memory_counters_ex
38
+
39
+ // Refer to the Golang internal implementation
40
+ // https://golang.org/src/internal/syscall/windows/psapi_windows.go
37
41
_ uint32
38
42
PageFaultCount uint32
39
- PeakWorkingSetSize uint64
40
- WorkingSetSize uint64
41
- QuotaPeakPagedPoolUsage uint64
42
- QuotaPagedPoolUsage uint64
43
- QuotaPeakNonPagedPoolUsage uint64
44
- QuotaNonPagedPoolUsage uint64
45
- PagefileUsage uint64
46
- PeakPagefileUsage uint64
47
- PrivateUsage uint64
43
+ PeakWorkingSetSize uintptr
44
+ WorkingSetSize uintptr
45
+ QuotaPeakPagedPoolUsage uintptr
46
+ QuotaPagedPoolUsage uintptr
47
+ QuotaPeakNonPagedPoolUsage uintptr
48
+ QuotaNonPagedPoolUsage uintptr
49
+ PagefileUsage uintptr
50
+ PeakPagefileUsage uintptr
51
+ PrivateUsage uintptr
48
52
}
49
53
50
54
func getProcessMemoryInfo (handle windows.Handle ) (processMemoryCounters , error ) {
You can’t perform that action at this time.
0 commit comments