psapi

package
v0.30.0-rc.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PerformanceInformation

type PerformanceInformation struct {
	CommitTotal       uint
	CommitLimit       uint
	CommitPeak        uint
	PhysicalTotal     uint
	PhysicalAvailable uint
	SystemCache       uint
	KernelTotal       uint
	KernelPaged       uint
	KernelNonpaged    uint
	PageSize          uint
	HandleCount       uint32
	ProcessCount      uint32
	ThreadCount       uint32
	// contains filtered or unexported fields
}

PerformanceInformation is a wrapper of the PERFORMANCE_INFORMATION struct. https://docs.microsoft.com/en-us/windows/win32/api/psapi/ns-psapi-performance_information

func GetPerformanceInfo

func GetPerformanceInfo() (PerformanceInformation, error)

GetPerformanceInfo returns the dereferenced version of GetLPPerformanceInfo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL