summaryrefslogtreecommitdiff
path: root/bin/g++_metric.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/g++_metric.sh')
-rwxr-xr-xbin/g++_metric.sh47
1 files changed, 0 insertions, 47 deletions
diff --git a/bin/g++_metric.sh b/bin/g++_metric.sh
deleted file mode 100755
index 69853c4f624..00000000000
--- a/bin/g++_metric.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-#
-# $Id$
-#
-# This simple script is used to gather compile time metrics. You can use
-# it with make like this:
-#
-# $ make CXX=g++_metric.sh
-#
-
-commandline=$@
-# find the target and save it to a variable
-until [ -z "$1" ] # test all command line parameters
-do
- if [ "-o" = "$1" ]
- then
- shift
- target=$1
- break
- fi
- shift
-done
-
-#unfortunately, time only goes down to seconds, so do it by hand...
-start=`date +%s%N`
-g++ $commandline
-
-retval=$?
-
-# only echo the compile time if the call was successful
-if [ $retval -eq 0 ]; then
- stop=`date +%s%N`
-
- let "total = (${stop}-${start})"
-
- # convert to microseconds even though we will only use milliseconds in the
- # graphs
- let "total = ($total)/1000"
-
- # add the path, relative to $ACE_ROOT, to the beginning of the object name
- # so that it can be used to name the object when it's processed.
- # Note that this line is commented so the output won't interfere with the
- # preprocessor output, i.e., when used by the tao_idl compiler.
- echo "//compile time: ${PWD#$ACE_ROOT/}/${target} $total"
-fi
-
-exit $retval