| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
GHC.Internal.Stack.CloneStack
Description
This module exposes an interface for capturing the state of a thread's
 execution stack for diagnostics purposes: cloneMyStack,
 cloneThreadStack.
Such a "cloned" stack can be decoded with decode to a stack trace, given
 that the -finfo-table-map is enabled.
Since: base-4.17.0.0
Synopsis
Documentation
data StackSnapshot Source #
A frozen snapshot of the state of an execution stack.
Since: base-4.17.0.0
Constructors
| StackSnapshot !StackSnapshot# | 
cloneMyStack :: IO StackSnapshot Source #
Clone the stack of the executing thread
Since: base-4.17.0.0
cloneThreadStack :: ThreadId -> IO StackSnapshot Source #
Clone the stack of a thread identified by its ThreadId
Since: base-4.17.0.0