Ticket #52 (closed defect: fixed)
Opened 7 years ago
Last modified 5 years ago
./configure --compile-type=profile
| Reported by: | Robert Tsai <rtsai1111> | Owned by: | danielk |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
With gcc-3.3.5 on Ubuntu hoary, I'm unable to compile with --compile-type=profile. Once I fix up the ./configure script to supply "-pg", I get complaints that "-pg" and "-fomit-frame-pointer" are incompatible.
I've attached a patch for the "-pg" flag, but my qmake-fu is insufficient to get "-fomit-frame-pointer" selectively turned off only for profile compiles.
"-pg" also needs to be added to the link line.
Attachments
Change History
comment:2 Changed 7 years ago by danielk
- Status changed from new to closed
- Resolution set to fixed
This is the second time someone has missunderstood what the profile compile type does, so I have added a little more help on "./configure --help". As I've explained before the profile option prepares MythTV for sampling profilers such as oprofile, PerfSuite? and vTune.
Profiling an application like MythTV with gprof is completely useless due to the overhead from the instrumentation inserted by "-pg".
