minidump

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package minidump saves minidumps without making processes crash. This is useful for investigating hanging processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveWithoutCrash

func SaveWithoutCrash(ctx context.Context, dir string, matchers ...Matcher)

SaveWithoutCrash saves minidumps of processes matched by matchers. Minidumps are saved in dir as "<process name>.<PID>.dmp".

Types

type Matcher

type Matcher func(*process.Process) bool

Matcher specifies processes to save minidumps of.

func MatchByName

func MatchByName(names ...string) Matcher

MatchByName specifies processes by process names.

func MatchByPID

func MatchByPID(pids ...int32) Matcher

MatchByPID specifies processes by PIDs.

Jump to

Keyboard shortcuts

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