coredump

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Package coredump

Index

Constants

View Source
const (
	DefaultDumpDir = "/tmp"
	CoreDumpSuffix = ".coredump"
)
View Source
const (
	AllocCore = ".alloc_profile"
)
View Source
const (
	BlockCore = ".block_profile"
)
View Source
const (
	CpuCore = ".cpu_profile"
)
View Source
const (
	GoroutineCore = ".goroutine_profile"
)
View Source
const (
	HeapCore = ".heap_profile"
)
View Source
const (
	ThreadCore = ".threads_profile"
)

Variables

This section is empty.

Functions

func CoreDump

func CoreDump(path string)

CoreDump path为coredump文件存储路径 不存在时使用DefaultDumpDir 当标准日志被输出到stderr时也会被记录

func GenerateAllocCore

func GenerateAllocCore(path string) error

func GenerateBlockCore

func GenerateBlockCore(path string) error

func GenerateCpuCore

func GenerateCpuCore(path string) error

GenerateCpuCore path为存储路径 不存在时使用默认路径/tmp

func GenerateGrsCore

func GenerateGrsCore(path string) error

func GenerateHeapCore

func GenerateHeapCore(path string) error

func GenerateThreadsCore

func GenerateThreadsCore(path string) error

func OnRuntimeStat

func OnRuntimeStat()

OnRuntimeStat 区分运行时 仅在特定场景下生效

Types

This section is empty.

Jump to

Keyboard shortcuts

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