Safe Haskell | Safe-Inferred |
---|
Debugging utilities.
Synopsis
- rtsAllocated :: MonadIO m => m Memory.Size
- rssVsize :: MonadIO m => m (Memory.Size, Memory.Size)
- dump_blocks :: IO.FilePath -> Cmd.CmdL ()
- dump_block :: IO.FilePath -> Id.BlockId -> Cmd.CmdL ()
- write_dump :: IO.FilePath -> Simple.State -> IO.IO ()
- dump_block_perf_events :: IO.FilePath -> Id.BlockId -> Cmd.CmdL ()
- dump_perf_events :: IO.FilePath -> [Types.Event] -> Cmd.CmdL ()
- show_history :: Cmd.CmdL Text
- track_signal :: Cmd.CmdL (Maybe Track.TrackSignal)
- get_warps :: Cmd.M m => Id.BlockId -> Id.TrackId -> m [TrackWarp.TrackWarp]
- get_track_warps :: Cmd.M m => m (Map Stack.Stack TrackWarp.Track)
- cache_logs :: Id.BlockId -> Cmd.CmdL Text
- cache_stats :: Id.BlockId -> Cmd.CmdL String
- block_cache :: Id.BlockId -> Cmd.CmdL ([(Text, [Id.BlockId])], [(Id.BlockId, Int)])
- track_cache :: Id.BlockId -> Cmd.CmdL ([(Text, [Id.TrackId])], [(Id.TrackId, Int)])
- format_stats :: Id.Ident id => ([(Text, [id])], [(id, Int)]) -> String
Documentation
rtsAllocated :: MonadIO m => m Memory.Size Source #
GHC's opinion on allocated memory.
rssVsize :: MonadIO m => m (Memory.Size, Memory.Size) Source #
OS opinion on RSS and VSIZE.
block
dump_blocks :: IO.FilePath -> Cmd.CmdL () Source #
Save state in a format that can be copy-pasted into a test, and loaded
with derive_dump
.
dump_block :: IO.FilePath -> Id.BlockId -> Cmd.CmdL () Source #
Like dump_blocks
, but only dump a single block.
write_dump :: IO.FilePath -> Simple.State -> IO.IO () Source #
perf events
dump_block_perf_events :: IO.FilePath -> Id.BlockId -> Cmd.CmdL () Source #
dump_perf_events :: IO.FilePath -> [Types.Event] -> Cmd.CmdL () Source #
undo
extract from Performance
get_warps :: Cmd.M m => Id.BlockId -> Id.TrackId -> m [TrackWarp.TrackWarp] Source #
Get collected warps of a specific track.
get_track_warps :: Cmd.M m => m (Map Stack.Stack TrackWarp.Track) Source #
Get all raw uncollected TrackWarps from the root, and strip out the signals so they don't take up tons of space.
cache
cache_logs :: Id.BlockId -> Cmd.CmdL Text Source #
Extract the cache logs, with no summarizing.
cache_stats :: Id.BlockId -> Cmd.CmdL String Source #
Stats for both block and track caches from the given block.
block_cache :: Id.BlockId -> Cmd.CmdL ([(Text, [Id.BlockId])], [(Id.BlockId, Int)]) Source #
Get summarized stats for cached blocks.
track_cache :: Id.BlockId -> Cmd.CmdL ([(Text, [Id.TrackId])], [(Id.TrackId, Int)]) Source #
Get summarized stats for cached tracks on the given block.