[FFmpeg-devel] [PATCH] print memory usage with -benchmark

Michael Niedermayer michaelni
Sun Feb 21 16:49:28 CET 2010


On Sun, Feb 21, 2010 at 11:51:14AM +0100, Reimar D?ffinger wrote:
> On Sun, Feb 21, 2010 at 01:39:27PM +0300, Michael Kostylev wrote:
> > 
> > On Sun Feb 21 09:04:46 2010
> > Reimar D?ffinger wrote:
> > 
> > >>> +check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
> > >> 
> > >> Why the sys/time.h?  sys/resource.h doesn't require that.
> > > 
> > > My man page recommends it as more portable.
> > 
> > Needless to mention that OpenBSD requires them both.
> 
> Ok, re-added it then.
> 
> > But the ru_maxrss field always contains zero while getrusage() returns no
> > error. On NetBSD too.
> 
> Some BSD version should have it at least.
> But yes, support for it is very spotty unfortunately.
> So not sure if it makes so much sense, however it seemed like the easiest
> way to get that kind of information for FATE - it wouldn't be a big deal
> if only 1 or 2 systems supported it correctly.



>  configure |    4 ++++
>  ffmpeg.c  |   26 +++++++++++++++++++++++++-

i just wanted to say that iam ok with this in principle once all the
platform compatibiliy is working

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100221/f54ca9f8/attachment.pgp>



More information about the ffmpeg-devel mailing list