# README
サンプルリスト
このディレクトリには以下のサンプルがあります。
file | example name | note |
---|---|---|
debug_printstack.go | stacktrace_debug_printstack | runtime/debug.PrintStack のサンプルです. |
debug_stack.go | stacktrace_debug_stack | runtime/debug.Stack のサンプルです. |
runtime_stack.go | stacktrace_runtime_stack | runtime.Stack のサンプルです. |
pprof_goroutine_writeto.go | stacktrace_pprof_writeto | pprof.Lookup("goroutine").WriteTo() のサンプルです. |
# Functions
DebugPrintStack -- runtime/debug.PrintStack のサンプルです.
DebugStack -- debug.Stack() の サンプルです。
REFERENCES - https://pkg.go.dev/runtime/debug#Stack - https://stackoverflow.com/questions/19094099/how-to-dump-goroutine-stacktraces.
NewRegister -- このパッケージ用のサンプルを登録する mapping.Register を生成します。.
PprofGoroutineWriteTo -- pprof.Lookup("goroutine").WriteTo() のサンプルです.
RuntimeStack -- runtime.Stack() についてのサンプルです。
REFERENCES - https://pkg.go.dev/runtime#Stack - https://stackoverflow.com/questions/19094099/how-to-dump-goroutine-stacktraces.