[Ffmpeg-devel] [PATCH] FFserver signal handler

Michel Bardiaux mbardiaux
Wed Feb 21 14:19:59 CET 2007


Alex Beregszaszi wrote:
> Hi,
[snip]

> I didnt found a way, altought didnt searched extensively. Originally I
> wanted to call the profile dump on SIGHUP.
> 
[snip]

> 
> I understand the best would be adding only SIGINT and SIGTERM.
> 
And you have to look everywhere for other changes to signals, which 
could override yours.

Frankly, I wonder whether its worth spending time on gprof, which is 
pretty much useless in my experience with ffmpeg. Why not try instead to 
move to say, oprofile? I admit having no experience with it, but I read at

http://www.cs.utk.edu/~vose/c-stuff/oprofile.html

"Note that unlike gprof, no instrumentation (-pg and -a options to gcc) 
is necessary.

Periodically (or on opcontrol --shutdown or opcontrol --dump) the 
profile data is written out into the /var/lib/oprofile/samples 
directory. These profile files cover shared libraries, applications, the 
kernel (vmlinux), and kernel modules. You can get summaries of this data 
in a number of ways at any time."

which sounds great.

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list