package stack

import "github.com/docker/docker/pkg/stack"

Index

Functions

func Dump

func Dump()

Dump outputs the runtime stack to os.StdErr.

func DumpToFile

func DumpToFile(dir string) (string, error)

DumpToFile appends the runtime stack into a file named "goroutine-stacks-<timestamp>.log" in dir and returns the full path to that file. If no directory name is provided, it outputs to os.Stderr.

Source Files

stackdump.go

Version
v24.0.0-beta.1+incompatible
Published
Mar 31, 2023
Platform
js/wasm
Imports
7 packages
Last checked
4 hours ago

Tools for package owners.