We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cabal v2-install --enable-profiling
This is in cabal-install 2.4, even the latest commit on that branch.
In any project that can produce an executable, issue
and confirm that the output binary can't produce profiling information.
e.g. (not a minimal example, just first thing that comes to hand.. this is the integration test for this app)
git clone https://github.com/symbiont-io/jaeger-flamegraph.git cd jaeger-flamegraph cabal v2-install --symlink-bindir=bin --enable-profiling -w ghc-8.4.4 jaeger-flamegraph gzip -cd frontend.json.gz | bin/jaeger-flamegraph -a p1 +RTS -P -RTS | sort > frontend.trace.test
gives
jaeger-flamegraph: the flag -P requires the program to be built with -prof
Note that v2-build --enable-profiling works as expected.
v2-build --enable-profiling
The text was updated successfully, but these errors were encountered:
additional note, this happens also for non-local / non-project-context v2-installs:
v2-install
cabal v2-install -w ghc-8.6.4 --enable-profiling uhttpc
will ignore the --enable-profiling flag too (same with --enable-executable-profiling)
--enable-profiling
--enable-executable-profiling
and in fact, the symlinked uhttpc-bench executable is the very same (i.e. same nix-style hash entry) that
uhttpc-bench
cabal v2-install -w ghc-8.6.4 uhttpc
symlinks. IOW, the 2nd invocation is a no-op.
Sorry, something went wrong.
cabal install --lib -p pkgname
Closing as duplicate of #7297 where there is a diagnostic, possible solutionand workarounds
No branches or pull requests
This is in cabal-install 2.4, even the latest commit on that branch.
In any project that can produce an executable, issue
and confirm that the output binary can't produce profiling information.
e.g. (not a minimal example, just first thing that comes to hand.. this is the integration test for this app)
gives
Note that
v2-build --enable-profiling
works as expected.The text was updated successfully, but these errors were encountered: