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

Reimar Döffinger Reimar.Doeffinger
Sun Feb 21 11:51:14 CET 2010

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: membench.diff
Type: text/x-diff
Size: 2323 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100221/baaa02c0/attachment.diff>

More information about the ffmpeg-devel mailing list