jvm

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileTypeAllocObjects    = "java:heap_alloc_objects:count"
	ProfileTypeAllocSpace      = "java:heap_alloc_space:bytes"
	ProfileTypeCPU             = "java:cpu:nanoseconds"
	ProfileTypeLockContentions = "java:lock_contentions:count"
	ProfileTypeLockDelay       = "java:lock_delay:nanoseconds"
)

Variables

This section is empty.

Functions

func CollectAsyncProfiler added in v1.31.0

func CollectAsyncProfiler(pid uint32) ([]byte, error)

func DeployAndStartAsyncProfiler added in v1.31.0

func DeployAndStartAsyncProfiler(pid uint32) error

func DumpPerfmap

func DumpPerfmap(pid uint32) error

func EnsureTlsAgentLoaded added in v1.30.0

func EnsureTlsAgentLoaded(pid uint32) string

func IsAsyncProfilerAlreadyLoaded added in v1.31.0

func IsAsyncProfilerAlreadyLoaded(pid uint32) bool

func IsHotSpotJVM added in v1.31.0

func IsHotSpotJVM(pid uint32) bool

func IsJavaProcess added in v1.30.0

func IsJavaProcess(pid uint32) bool

func IsPerfmapDumpSupported

func IsPerfmapDumpSupported(cmdline []byte) bool

func LoadAgent added in v1.31.0

func LoadAgent(pid uint32, agentPath, args string) error

func LoadNativeAgent added in v1.31.0

func LoadNativeAgent(pid uint32, agentPath, args string) error

func StopAsyncProfiler added in v1.31.0

func StopAsyncProfiler(pid uint32)

Types

type JavaProfile added in v1.31.0

type JavaProfile struct {
	Type string
	Prof *profile.Profile
}

func ParseProfiles added in v1.31.0

func ParseProfiles(jfrData []byte, duration time.Duration) ([]JavaProfile, error)

Jump to

Keyboard shortcuts

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