Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghc-debug
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
ghc-debug
Commits
8acb29ef
Commit
8acb29ef
authored
1 year ago
by
Matthew Pickering
Browse files
Options
Downloads
Patches
Plain Diff
Fix snapshotting for non-profiled RTS
parent
3bb23bf0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!59
0.6.0.0 release
Pipeline
#92865
passed
1 year ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/GHC/Debug/Snapshot.hs
+4
-2
4 additions, 2 deletions
client/src/GHC/Debug/Snapshot.hs
with
4 additions
and
2 deletions
client/src/GHC/Debug/Snapshot.hs
+
4
−
2
View file @
8acb29ef
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment