hsperfdata

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(logger log.Logger) *Cache

func (*Cache) Exists

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

func (*Cache) IsJavaProcess

func (c *Cache) 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