[Git][ghc/ghc][wip/con-info] 3 commits: Remove unused function ipe
Matthew Pickering
gitlab at gitlab.haskell.org
Mon Nov 23 08:51:14 UTC 2020
Matthew Pickering pushed to branch wip/con-info at Glasgow Haskell Compiler / GHC
Commits:
6a413e47 by Matthew Pickering at 2020-11-23T08:42:45+00:00
Remove unused function ipe
- - - - -
c252996f by Matthew Pickering at 2020-11-23T08:43:04+00:00
Add information about -hi mode to documentation
- - - - -
c5dd1cf1 by Matthew Pickering at 2020-11-23T08:51:04+00:00
Remove bang pattern to fix loop
- - - - -
2 changed files:
- compiler/GHC/StgToCmm/Monad.hs
- docs/users_guide/profiling.rst
Changes:
=====================================
compiler/GHC/StgToCmm/Monad.hs
=====================================
@@ -58,7 +58,7 @@ module GHC.StgToCmm.Monad (
-- more localised access to monad state
CgIdInfo(..),
getBinds, setBinds,
- getUsedInfo, addUsedInfo,
+ getUsedInfo,
-- out of general friendliness, we also export ...
CgInfoDownwards(..), CgState(..) -- non-abstract
) where
@@ -316,7 +316,7 @@ data CgState
cgs_uniqs :: UniqSupply,
-- | These are IDs which have an info table
- cgs_used_info :: ![CmmInfoTable]
+ cgs_used_info :: [CmmInfoTable]
}
data HeapUsage -- See Note [Virtual and real heap pointers]
@@ -386,9 +386,6 @@ s1 `addCodeBlocksFrom` s2
cgs_used_info = (cgs_used_info s1) ++ (cgs_used_info s2)
}
-addUsedInfo :: CmmInfoTable -> CgState -> CgState
-addUsedInfo cl cg = cg { cgs_used_info = cl : cgs_used_info cg }
-
-- The heap high water mark is the larger of virtHp and hwHp. The latter is
-- only records the high water marks of forked-off branches, so to find the
-- heap high water mark you have to take the max of virtHp and hwHp. Remember,
=====================================
docs/users_guide/profiling.rst
=====================================
@@ -779,6 +779,11 @@ following RTS options select which break-down to use:
Biographical profiling is described in more detail below
(:ref:`biography-prof`).
+.. rts-flag:: -hi
+
+ Break down the graph by the address of the info table of a closure. This
+ profiling mode is intended to be used with :ghc-flag:`-finfo-table-map`.
+
.. rts-flag:: -l
:noindex:
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/54eb5bbe383d3c4c22661fd789185441c9136d22...c5dd1cf18c7c1cc5f90560cf1154daf1f0f86f61
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/54eb5bbe383d3c4c22661fd789185441c9136d22...c5dd1cf18c7c1cc5f90560cf1154daf1f0f86f61
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201123/33dfae75/attachment-0001.html>
More information about the ghc-commits
mailing list