Skip to content

A late profiling options doesn't seem to work: --profiling-detail=late-inline #9182

Closed
@Mikolaj

Description

@Mikolaj

--profiling-detail=late-inline results in a wrong profile, different than when specifying --ghc-options="-fprof-late-inline". This should work: https://downloads.haskell.org/ghc/9.4.6/docs/users_guide/profiling.html?highlight=profiling

Tested with GHC 9.4.6 and cabal 3.10.1.0.

OTOH, I see this among the tests:

cabal-testsuite/PackageTests/ProfLate/setup.test.hs:        --  ["--enable-profiling", "--profiling-detail=late-toplevel"]

which is not a valid option AFAIC, so perhaps the options changed at the last moment. Cabal documentation is lacking, too: https://cabal.readthedocs.io/en/latest/setup-commands.html#cmdoption-runhaskell-Setup.hs-configure-profiling-detail

We could start by updating the test, then fix it, then document.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions