Skip to content
Snippets Groups Projects
Commit 8acb29ef authored by Matthew Pickering's avatar Matthew Pickering
Browse files

Fix snapshotting for non-profiled RTS

parent 3bb23bf0
No related branches found
No related tags found
1 merge request!590.6.0.0 release
Pipeline #92865 passed
......@@ -14,15 +14,17 @@ import GHC.Debug.Client
import Control.Monad.Identity
import Control.Monad.Trans
import GHC.Debug.CostCentres (findAllChildrenOfCC)
import Control.Monad
import GHC.Debug.Types.Version
-- | Make a snapshot of the current heap and save it to the given file.
snapshot :: FilePath -> DebugM ()
snapshot fp = do
precacheBlocks
version
ver <- version
rs <- gcRoots
_so <- savedObjects
findAllChildrenOfCC (const False)
when (isProfiledRTS ver) (() <$ findAllChildrenOfCC (const False))
tracePar rs
saveCache fp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment