Admin/isatest/isatest-statistics
changeset 29426 0a1d32bc5ee5
parent 28467 c8336c42668e
child 31640 51fb047168b7
equal deleted inserted replaced
29425:6baa02c8263e 29426:0a1d32bc5ee5
     1 #!/usr/bin/env bash
     1 #!/usr/bin/env bash
     2 #
     2 #
     3 # $Id$
       
     4 # Author: Makarius
     3 # Author: Makarius
     5 #
     4 #
     6 # DESCRIPTION: Produce statistics from isatest session logs.
     5 # DESCRIPTION: Produce statistics from isatest session logs.
     7 
     6 
     8 ## platform settings
     7 ## platform settings
    91     }
    90     }
    92   }' > "$ALL_DATA"
    91   }' > "$ALL_DATA"
    93 
    92 
    94 for SESSION in $SESSIONS
    93 for SESSION in $SESSIONS
    95 do
    94 do
    96   fgrep "$SESSION " "$ALL_DATA" > "$SESSION_DATA"
    95   grep "^${SESSION} " "$ALL_DATA" > "$SESSION_DATA"
    97   PLOT="plot [] [0:] \"$SESSION_DATA\" using 2:3 smooth sbezier title \"interpolated cpu time\", \"$SESSION_DATA\" using 2:3 smooth csplines title \"cpu time\""
    96   PLOT="plot [] [0:] \"$SESSION_DATA\" using 2:3 smooth sbezier title \"interpolated cpu time\", \"$SESSION_DATA\" using 2:3 smooth csplines title \"cpu time\""
    98   if [ "$PARALLEL" = true ]; then
    97   if [ "$PARALLEL" = true ]; then
    99     PLOT="${PLOT}, \"$SESSION_DATA\" using 2:4 smooth sbezier title \"interpolated elapsed time\", \"$SESSION_DATA\" using 2:4 smooth csplines title \"elapsed time\""
    98     PLOT="${PLOT}, \"$SESSION_DATA\" using 2:4 smooth sbezier title \"interpolated elapsed time\", \"$SESSION_DATA\" using 2:4 smooth csplines title \"elapsed time\""
   100   fi
    99   fi
   101   gnuplot <<EOF
   100   gnuplot <<EOF