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

Reimar Döffinger Reimar.Doeffinger
Sun Feb 21 09:13:39 CET 2010


On Sat, Feb 20, 2010 at 09:56:04PM -0200, Ramiro Polla wrote:
> > +    HANDLE proc;
> > +    PROCESS_MEMORY_COUNTERS memcounters;
> > +    proc = GetCurrentProcess();
> > +    GetProcessMemoryInfo(proc, &memcounters);
> 
> GetProcessMemoryInfo(proc, &memcounters, sizeof(memcounters));

Actually the .cb field should be initialized as well.
Updated version attached.
Testers on Linux or BSD are still needed though.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: membench.diff
Type: text/x-diff
Size: 2209 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100221/b571b7fc/attachment.diff>



More information about the ffmpeg-devel mailing list