coreparser

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProcessNameFromPath

func GetProcessNameFromPath(execPath string) string

GetProcessNameFromPath 从可执行文件路径提取进程名

func SetMD5Concurrency

func SetMD5Concurrency(n int)

SetMD5Concurrency 设置 MD5 计算的最大并发数 应在程序启动时调用,默认为 2

Types

type CoreInfo

type CoreInfo struct {
	ExecutablePath string // 可执行文件的完整路径
	ProcessName    string // 进程名称
	FileSize       int64  // core 文件大小
	MD5            string // core 文件 MD5
}

CoreInfo 包含从 core 文件解析出的信息

func ParseCoreFile

func ParseCoreFile(corefilePath string) (*CoreInfo, error)

ParseCoreFile 解析 core 文件获取详细信息 使用 file 命令获取可执行程序路径

Jump to

Keyboard shortcuts

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