Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / bin / footprint_stats.sh
blobeb7fd5ffd2b34fd0e9b7e42776eadda3bc311d5d
1 #!/bin/sh
4 if [ $# -lt 1 ]; then
5 echo "Usage: $0 [DEST]"
6 exit 0
7 fi
9 DEST=$1
10 DATE=`date +%Y/%m/%d-%H:%M`
12 BINS="$TAO_ROOT/tests/ORB_init/ORB_init $TAO_ROOT/tests/ORB_destroy/ORB_destroy"
14 LIBS="$ACE_ROOT/ace/libACE.a \
15 $TAO_ROOT/tao/libTAO.a \
16 $TAO_ROOT/tao/PortableServer/libTAO_PortableServer.a \
17 $TAO_ROOT/tao/Strategies/libTAO_Strategies.a \
18 $TAO_ROOT/tao/SmartProxies/libTAO_SmartProxies.a \
19 $TAO_ROOT/tao/DynamicAny/libTAO_DynamicAny.a \
20 $TAO_ROOT/tao/DynamicInterface/libTAO_DynamicInterface.a \
21 $TAO_ROOT/tao/IFR_Client/libTAO_IFR_Client.a \
22 $TAO_ROOT/tao/BiDir_GIOP/libTAO_BiDirGIOP.a \
23 $TAO_ROOT/tao/IORManipulation/libTAO_IORManip.a \
24 $TAO_ROOT/tao/IORTable/libTAO_IORTable.a \
25 $TAO_ROOT/tao/TypeCodeFactory/libTAO_TypeCodeFactory.a \
26 $TAO_ROOT/tao/RTCORBA/libTAO_RTCORBA.a \
27 $TAO_ROOT/tao/IORInterceptor/libTAO_IORInterceptor.a \
28 $TAO_ROOT/tao/Messaging/libTAO_Messaging.a \
29 $TAO_ROOT/tao/ObjRefTemplate/libTAO_ObjRefTemplate.a \
30 $TAO_ROOT/tao/Valuetype/libTAO_Valuetype.a \
31 $TAO_ROOT/tao/RTScheduling/libTAO_RTScheduler.a \
32 $TAO_ROOT/tao/AnyTypeCode/libTAO_AnyTypeCode.a \
33 $TAO_ROOT/tao/PI/libTAO_PI.a \
34 $TAO_ROOT/tao/PI_Server/libTAO_PI_Server.a \
35 $TAO_ROOT/tao/Codeset/libTAO_Codeset.a \
36 $TAO_ROOT/tao/CodecFactory/libTAO_CodecFactory.a \
37 $TAO_ROOT/tao/RTPortableServer/libTAO_RTPortableServer.a"
39 mkdir -p $DEST/source
40 mkdir -p $DEST/data
41 mkdir -p $DEST/images
43 for i in $BINS; do
44 b=`basename $i`
45 if [ -x $i ]; then
47 echo -n $DATE " ";
48 size $i |
49 grep -v text |
50 awk '{print $4}'
51 ) >> $DEST/source/${b}_size.txt
53 done
55 for i in $LIBS; do
56 b=`basename $i`;
57 if [ -f $i ]; then
59 echo -n $DATE " ";
60 size $i |
61 awk '{s += $4} END {print s}'
62 ) >> $DEST/source/${b}_size.txt
64 done
66 cd $DEST/source
68 for i in $LIBS $BINS; do
69 b=`basename $i`
70 /usr/bin/tac ${b}_size.txt > $DEST/data/${b}_size.txt
71 /usr/bin/tail -5 ${b}_size.txt > $DEST/data/LAST_${b}_size.txt
72 $ACE_ROOT/bin/generate_footprint_chart.sh ${b}_size.txt $DEST/images/${b}_size.png $b
73 done