#!/bin/csh -f
#
# metrics - print summary of the array metrics in a sim file
#
set usage='usage: metrics foo.sim[.gz]'
#
# Part of
#              The STARFISH Parallel file-system simulator
#        (Simulation Tool for Advanced Research in File Systems)
# 
#                               David Kotz
#                           Dartmouth College
#                              Version 3.0
#                              October 1996
#                          dfk@cs.dartmouth.edu

if ($#argv != 1) then
    echo "$usage"
    exit 1
endif

simex -sim $1  \
  total tthruput IOPread IOPread_sd IOPwrite IOPwrite_sd EmptyBlock FillBlock \
  -sum -avg \
  ithruput othruput miss hit diskmiss diskhit diskread diskwrite \
  diskidle diskwait diskwait_sd diskmoves diskdistance
