All of lore.kernel.org
 help / color / mirror / Atom feed
* Deprecating --enable-gprof?
@ 2020-09-18 13:25 Marc-André Lureau
  2020-09-18 13:36 ` Daniel P. Berrangé
  2020-09-18 14:19 ` Peter Maydell
  0 siblings, 2 replies; 5+ messages in thread
From: Marc-André Lureau @ 2020-09-18 13:25 UTC (permalink / raw)
  To: QEMU; +Cc: Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]

Hi

configure has --enable-gprof since its creation, but is it actually being
used, or is it sporadic enough that we could deprecate it?

I have some reason to believe that it's not used much:
- --enable-gprof only enables -p, which is prof (not gprof!)
- nowadays there are better profiling tools, such as perf

Should we fix it to use gprof instead? Or does anyone actually care about
it?

It is problematic as the flag is passed to meson globally
(add_project_arguments), but some targets may not support it. I have
pending patches for pc-bios/* roms. And we can't remove the flag for those
easily (not as easily as if it was supported by meson, like coverage)

I would propose to deprecate it on the configure options. A user can always
override the cflags manually to provide -p option if he really needs it.
Alternatively, I could work on getting support in meson (
https://github.com/mesonbuild/meson/issues/3659), but this would bump our
meson dependency more.

What do you think?

-- 
Marc-André Lureau

[-- Attachment #2: Type: text/html, Size: 1389 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-19  6:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18 13:25 Deprecating --enable-gprof? Marc-André Lureau
2020-09-18 13:36 ` Daniel P. Berrangé
2020-09-18 14:19 ` Peter Maydell
2020-09-18 14:27   ` Daniel P. Berrangé
2020-09-19  6:10     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.