4
server_fn=@CMAKE_CURRENT_BINARY_DIR@/massif_$4
5
@VALGRIND_EXECUTABLE@ --tool=massif --pages-as-heap=yes --massif-out-file=`echo $server_fn`.out @CMAKE_INSTALL_PREFIX@/bin/mir -f @MEMORY_BENCHMARKS_SOCKET@ &
10
# Starting the clients
11
fn=@CMAKE_CURRENT_BINARY_DIR@/massif_$3
12
seq 1 $1 | xargs -I {} -n 1 -P $1 @VALGRIND_EXECUTABLE@ --tool=massif --pages-as-heap=yes --massif-out-file=`echo $fn`.out.{} @CMAKE_INSTALL_PREFIX@/bin/mir_demo_client -f @MEMORY_BENCHMARKS_SOCKET@ -c $2
16
# This is extremely ugly, but we need to introduce some latency to account
17
# for the fact that we fire up multiple mir instances in rapid succession.