summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-22 22:21:58 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-02-22 22:21:58 +0000
commitfc5607f86209b0a0ddec1b0a3816f7977e15f516 (patch)
treede1f30ffd0cc6add56360a4fe1f870525485f561 /configure
parentb7884740fa2157c6d2a337012370c460e728d299 (diff)
Make -benchmark also print the maximum memory usage if possible.
Originally committed as revision 21973 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 9a2a2e767b..94cfc9994b 100755
--- a/configure
+++ b/configure
@@ -1028,8 +1028,10 @@ HAVE_LIST="
fork
getaddrinfo
gethrtime
+ GetProcessMemoryInfo
GetProcessTimes
getrusage
+ struct_rusage_ru_maxrss
inet_aton
inline_asm
isatty
@@ -2497,6 +2499,7 @@ check_func fork
check_func getaddrinfo $network_extralibs
check_func gethrtime
check_func getrusage
+check_struct "sys/time.h sys/resource.h" "struct rusage" ru_maxrss
check_func inet_aton $network_extralibs
check_func isatty
check_func ${malloc_prefix}memalign && enable memalign
@@ -2505,6 +2508,7 @@ check_func ${malloc_prefix}posix_memalign && enable posix_memalign
check_func setrlimit
check_func_headers io.h setmode
check_func_headers lzo/lzo1x.h lzo1x_999_compress
+check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
check_func_headers windows.h GetProcessTimes
check_func_headers windows.h VirtualAlloc