summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-11-25 17:03:08 +0000
committerAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-01 14:03:25 +0100
commit1a23d2008ed90b33924ffe35f5c69eb9e3391456 (patch)
tree4ed576840047bfbada7e3e8575c2c57edeb5b05e /compiler/GHC/Iface
parent80f9133e128abc61913d264ecd8b102517b266f5 (diff)
downloadhaskell-wip/ticky-eventlog-rebase.tar.gz
Ticky profiling improvements.wip/ticky-eventlog-rebase
This adds a number of changes to ticky-ticky profiling. When an executable is profiled with IPE profiling it's now possible to associate id-related ticky counters to their source location. This works by emitting the info table address as part of the counter which can be looked up in the IPE table. Add a `-ticky-ap-thunk` flag. This flag prevents the use of some standard thunks which are precompiled into the RTS. This means reduced cache locality and increased code size. But it allows better attribution of execution cost to specific source locations instead of simple attributing it to the standard thunk. ticky-ticky now uses the `arg` field to emit additional information about counters in json format. When ticky-ticky is used in combination with the eventlog eventlog2html can be used to generate a html table from the eventlog similar to the old text output for ticky-ticky.
Diffstat (limited to 'compiler/GHC/Iface')
-rw-r--r--compiler/GHC/Iface/Tidy.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Iface/Tidy.hs b/compiler/GHC/Iface/Tidy.hs
index c453cc5336..268c43945e 100644
--- a/compiler/GHC/Iface/Tidy.hs
+++ b/compiler/GHC/Iface/Tidy.hs
@@ -370,7 +370,7 @@ tidyProgram hsc_env (ModGuts { mg_module = mod
= Err.withTiming logger
(text "CoreTidy"<+>brackets (ppr mod))
- (const ()) $
+ (const ()) $!
do { let { omit_prags = gopt Opt_OmitInterfacePragmas dflags
; expose_all = gopt Opt_ExposeAllUnfoldings dflags
; print_unqual = mkPrintUnqualified (hsc_unit_env hsc_env) rdr_env