Repository navigation
build: Remove --enable-gprof - #30257
Conversation
This reverts cfaac2a
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use] |
willcl-ark
left a comment
There was a problem hiding this comment.
crACK fa780e1
Agree on the rationale given here for removal.
I've previously tried to use gprof in place of perf (when addr2line was broken/unusably slow on my Ubuntu kernel) and hit against many of the pain points ("requirements") @maflcko mentions in OP, which also had me wondering how often this is really used...
I did find a reference to gprof remaining in depends:
bitcoin/depends/packages/qrencode.mk
Line 9 in 7fd4905
I think this is also unneeded, as libqrencode seems to default to off in the configure script:
--enable-gprof generate extra code to write profile information
suitable for gprof [default=no]
I think this is unrelated, because it relates to compiling the qrencode package, not Bitcoin Core itself. Happy to review a separate pull, if there is one.
depends uses cmake to compile the qrencode package, but it seems off there as well https://github.com/fukuchi/libqrencode/blame/715e29fd4cd71b6e452ae0f4e36d917b43122ce8/CMakeLists.txt#L8 . Again, happy to review a separate pull, if there is one. |
|
Nothing should be required here in regards to qrencode. I agree that this can just be removed. |
|
Removed the label because nothing was ever ported. |
|
It needs to be ported to the table in https://gist.github.com/hebasto/2ef97d3a726bfce08ded9df07f7dab5e |
Done. |
It is unclear what benefit this option has, given that:
gprofrequires re-compilation (perfand other tools can instead be used on existing executables)gprofrequires hardening to be disabledgprofdoesn't work withclangperfis documented in the dev-notes, and test notes, and embedded into the functional test framework;gprofisn't./configuregprofin the discussions in this repo, apart from the initial pull request adding it (cfaac2a)Fix all issues by removing it.