Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#52 closed defect (fixed)

./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 (1)

mythtv.profile.diff (1.2 KB) - added by Robert Tsai <rtsai1111> 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by Robert Tsai <rtsai1111>

Attachment: mythtv.profile.diff added

comment:1 Changed 14 years ago by Isaac Richards

Owner: changed from Isaac Richards to danielk

comment:2 Changed 14 years ago by danielk

Resolution: fixed
Status: newclosed

(In [6837]) Closes #52

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".

Note: See TracTickets for help on using tickets.