Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const DescriptionPProfLabel + const PIDPProfLabel + const PPIDPProfLabel + const ProcessTypePProfLabel + var DefaultContext = context.Background() + var NoneProcessType = "none" + var NormalProcessType = "normal" + var ProcessContextKey interface{} = "process-context" + var RequestProcessType = "request" + var SystemProcessType = "system" + var Trace = defaultTrace + func SetSysProcAttribute(cmd *exec.Cmd) + type Context struct + func GetContext(ctx context.Context) *Context + func (c *Context) GetPID() IDType + func (c *Context) GetParent() *Context + func (c *Context) Value(key interface{}) interface{} + type Error struct + CtxErr error + Description string + Err error + PID IDType + Stderr string + Stdout string + func (err *Error) Error() string + func (err *Error) Unwrap() error + type FinishedFunc = context.CancelFunc + type IDType string + func GetPID(ctx context.Context) IDType + func GetParentPID(ctx context.Context) IDType + type Label struct + Name string + Value string + type Manager struct + func GetManager() *Manager + func (pm *Manager) Add(ctx context.Context, description string, cancel context.CancelFunc, ...) (context.Context, IDType, FinishedFunc) + func (pm *Manager) AddContext(parent context.Context, description string) (ctx context.Context, cancel context.CancelFunc, finished FinishedFunc) + func (pm *Manager) AddContextTimeout(parent context.Context, timeout time.Duration, description string) (ctx context.Context, cancel context.CancelFunc, finshed FinishedFunc) + func (pm *Manager) AddTypedContext(parent context.Context, description, processType string, currentlyRunning bool) (ctx context.Context, cancel context.CancelFunc, finished FinishedFunc) + func (pm *Manager) Cancel(pid IDType) + func (pm *Manager) Exec(desc, cmdName string, args ...string) (string, string, error) + func (pm *Manager) ExecDir(ctx context.Context, timeout time.Duration, dir, desc, cmdName string, ...) (string, string, error) + func (pm *Manager) ExecDirEnv(ctx context.Context, timeout time.Duration, dir, desc string, env []string, ...) (string, string, error) + func (pm *Manager) ExecDirEnvStdIn(ctx context.Context, timeout time.Duration, dir, desc string, env []string, ...) (string, string, error) + func (pm *Manager) ExecTimeout(timeout time.Duration, desc, cmdName string, args ...string) (string, string, error) + func (pm *Manager) ProcessStacktraces(flat, noSystem bool) ([]*Process, int, int64, error) + func (pm *Manager) Processes(flat, noSystem bool) ([]*Process, int) + type Process struct + Children []*Process + Description string + PID IDType + ParentPID IDType + Stacks []*Stack + Start time.Time + Type string + type Stack struct + Count int64 + Description string + Entry []*StackEntry + Labels []*Label + type StackEntry struct + File string + Function string + Line int