6 echo "Usage: $0 [DEST] [USER]"
13 DATE
=`date +%Y/%m/%d-%H:%M`
15 LD_LIBRARY_PATH
=$ACE_ROOT/ace
16 export LD_LIBRARY_PATH
19 cd $TAO_ROOT/performance-tests
/Memory
/Single_Threaded
23 # Just sleep for 2 seconds.
25 # Check whether the server has started
29 # Just get the size as soon the server is started, ie. the vanilla
31 s_up
=`top -p $s_id -n 1 -b | grep $US| awk '{print $5}'`;
34 echo $DATE $s_up >> $DEST/source
/st_start_size.txt
38 # Wait till all the invocations are done
40 # Get the size once the client has made sufficient invocations.
41 s_invocations
=`top -p $s_id -n 1 -b | grep $US| awk '{print $5}'`;
43 echo $DATE $s_invocations >> $DEST/source
/st_after_invoke_size.txt
45 # Kill the server and client. We will look at better ways of doing
49 # Just sleep for the server to release memory etc.
52 # Get the size once the client is killed or crashed
53 s_client_death
=`top -p $s_id -n 1 -b | grep $US| awk '{print $5}'`;
54 echo $DATE $s_client_death >> $DEST/source
/st_after_peer_death_size.txt
58 echo $file doesnt exist
64 FILES
="start after_invoke after_peer_death"
66 /usr
/bin
/tac st_
${i}_size.txt
> $DEST/data
/st_
${i}_size.txt
67 /usr
/bin
/tail -5 st_
${i}_size.txt
> $DEST/data
/LAST_st_
${i}_size.txt
68 $ACE_ROOT/bin
/generate_topinfo_charts.sh st_
${i}_size.txt $DEST/images/st_${i}_size.png st_${i}_size.txt
$STRING