[mythtv] Profiling mythtv Channel Changes...

Linuxguy123 linuxguy123 at gmail.com
Wed Oct 22 21:15:04 UTC 2008

On Thu, 2008-10-23 at 00:01 +0200, Petr Stehlík wrote:
> Linuxguy123 píše v St 22. 10. 2008 v 15:40 -0400:
> > > The logging already exists, to a level greater than you probably need
> > > for this effort.
> > 
> > Tell me more.
> for you: RTFM

a) This is the first time that anyone has actually told me that some
form of logging is built into mythtv.  Thank you.  Was that so hard ?

b) I assume you are speaking about this, ie "set logging on" ?  I read
the manual previously and missed the fact that gdb would be used for
profiling.  How well does it work for this purpose ?

22.2 Debugging
MythTV segfaults
MythTV isn't doing anything
Debugging with GDB
Without details, the developers will not be able to determine if you
have discovered a genuine code-bug, or if
the problem is with your system. In order to determine what's going on,
you must recompile MythTV with
debugging support and run MythTV within gdb, the GNU debugger. Note
that, on OS X, some data is
provided without going through these steps.
See /Library/Logs/CrashReporter/MythFrontend.crash.log
Re-run the configure script and add --compile-type=debug to any previous
configuration options you
may have used. Check the config.log file if you have forgotten.
Now, you need to clear out the old versions of the software to ensure
that you're running with the debugging
code, then compile and install.
         $ make distclean
         $ ./configure --compile-type=debug
         $ make
         $ su
         # make install
         # exit
At this point, you now have debug-enabled software ready. To make sure
that you don't forget to type a
command required for debugging, it's best to setup a gdbcommands file.
This will be read by gdb when it's
started. Put the following into gdbcommands in your home directory:
         handle SIGPIPE nostop noprint
         handle SIG33 nostop noprint
         set logging on
         set pagination off
         set args -l myth.log -v record,channel,siparser
         thread apply all bt full

More information about the mythtv-dev mailing list