projects
/
ghc-heap-view.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b50d74
)
Actually use heapGraphRoot in ppHeapGraph
author
Joachim Breitner
<mail@joachim-breitner.de>
Thu, 20 Dec 2012 10:29:35 +0000
(10:29 +0000)
committer
Joachim Breitner
<mail@joachim-breitner.de>
Thu, 20 Dec 2012 10:29:35 +0000
(10:29 +0000)
src/GHC/HeapView.hs
patch
|
blob
|
history
diff --git
a/src/GHC/HeapView.hs
b/src/GHC/HeapView.hs
index
53b9475
..
0187e4c
100644
(file)
--- a/
src/GHC/HeapView.hs
+++ b/
src/GHC/HeapView.hs
@@
-778,7
+778,7
@@
buildHeapGraph limit initialBox = do
-- > x3 = C# 'o'
-- >in x0
ppHeapGraph :: HeapGraph -> String
-ppHeapGraph (HeapGraph m) = "let " ++ intercalate "\n " (map ppEntry (M.assocs m)) ++ "\nin x
0"
+ppHeapGraph (HeapGraph m) = "let " ++ intercalate "\n " (map ppEntry (M.assocs m)) ++ "\nin x
" ++ show heapGraphRoot
where
ppEntry (i,HeapGraphEntry _ c) = "x" ++ show i ++ " = " ++ ppPrintClosure go 0 c
go _ Nothing = "..."