Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document --profiling-detail in setup-commands. #9388

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
levels of detail as toplevle-functions. However it means functions introduced
levels of detail as toplevel-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
Loading