process

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemUsageForHandle

func GetMemUsageForHandle(handle windows.Handle) (uint, error)

GetMemUsageForHandle returns the peak working set size for the process, in bytes.

func GetUsage

func GetUsage(cmd *exec.Cmd) (execute.Usage, error)

GetUsage returns the resource usage information about the executed process.

func ReadHandle

func ReadHandle(cmd *exec.Cmd) (windows.Handle, error)

ReadHandle returns the windows handle for the process executing the command. WARNING: This uses reflection to read the private field of the `*os.Process` type. This function should never be used other than the extremely narrow use-case for which it was designed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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