Modify

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

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

Change History

Changed 7 years ago by Robert Tsai <rtsai1111>

comment:1 Changed 7 years ago by ijr

  • Owner changed from ijr to danielk

comment:2 Changed 7 years ago by danielk

  • Status changed from new to closed
  • Resolution set to fixed

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

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.