diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-11 14:11:43 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-11-22 12:39:38 -0500 |
commit | 92c0afbf592e71dae3c80cec09b1596df50ff8a9 (patch) | |
tree | 48f20391e6bea668026fe1ba339a804997aff09f | |
parent | 901bc2208a115e0f8313b3aa9abc76fd05509aaa (diff) | |
download | haskell-92c0afbf592e71dae3c80cec09b1596df50ff8a9.tar.gz |
hadrian: Dump STG when ticky is enabled
This changes the "ticky" modifier to enable dumping of final STG as this
is generally needed to make sense of the ticky profiles.
-rw-r--r-- | hadrian/src/Flavour.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index a75976f73a..364261259f 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -96,7 +96,13 @@ enableTickyGhc = [ builder (Ghc CompileHs) ? ticky , builder (Ghc LinkHs) ? ticky ] - ticky = arg "-ticky" <> arg "-ticky-allocd" + ticky = mconcat + [ arg "-ticky" + , arg "-ticky-allocd" + -- You generally need STG dumps to interpret ticky profiles + , arg "-ddump-to-file" + , arg "-ddump-stg-final" + ] -- | Transform the input 'Flavour' so as to build with -- @-split-sections@ whenever appropriate. You can |