Help us shape the future of Go! Take the 2026 Go Developer Survey

java

package
v0.28.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HSPerfDataCache

type HSPerfDataCache struct {
	// contains filtered or unexported fields
}

func NewHSPerfDataCache

func NewHSPerfDataCache(logger log.Logger, nsCache *namespace.Cache) *HSPerfDataCache

func (*HSPerfDataCache) Exists

func (c *HSPerfDataCache) Exists(pid int) bool

func (*HSPerfDataCache) IsJavaProcess

func (c *HSPerfDataCache) IsJavaProcess(pid int) (bool, error)

IsJavaProcess returns true if the hsperfdata file exists for a given pid. It first searches in all hsperfdata user directories for the processes running on host and then searches in /proc/{pid}/root/tmp for processes running in containers. Note that pids are assumed to be unique regardless of username.

Jump to

Keyboard shortcuts

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