Skip to content

Commit

Permalink
Merge pull request #9388 from AndreasPK/wip/andreask/late-docs
Browse files Browse the repository at this point in the history
Document --profiling-detail in setup-commands.
  • Loading branch information
mergify[bot] authored Nov 11, 2023
2 parents 5df009c + ef0ca48 commit 69417ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/setup-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,14 @@ Miscellaneous options
each module, whether top level or local. In GHC specifically,
this is for non-inline toplevel or where-bound functions or
values.
late-toplevel
Like top-level but costs will be assigned to top level definitions after
optimization. This lowers profiling overhead massively while giving similar
levels of detail as toplevle-functions. However it means functions introduced
by GHC during optimization will show up in profiles as well.
Corresponds to ``-fprof-late`` if supported and ``-fprof-auto-top`` otherwise.
late
Currently an alias for late-toplevel

This flag is new in Cabal-1.24. Prior versions used the equivalent
of ``none`` above.
Expand Down

0 comments on commit 69417ac

Please sign in to comment.