Skip to content

Commit

Permalink
Document --profiling-detail in setup-commands.
Browse files Browse the repository at this point in the history
Fixes #9182
  • Loading branch information
AndreasPK authored and Mikolaj committed Nov 11, 2023
1 parent 5df009c commit ef0ca48
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 ef0ca48

Please sign in to comment.