#!/bin/bash

if [ $# -lt 3 ]
then
  echo ""
  echo "Usage: "
  echo ""
  echo "  $0 <path-to-TAU-data> <max functions> <call cutoff>"
  echo ""
  echo "Notes:"
  echo ""
  echo "  * Specify the file as either the path to the TAU profiles, or the"
  echo "    filename of the packed TAU data."
  echo ""
  exit 1
fi

working_path=`echo $0 | sed 's/doCluster//'`

eval perfexplorer -c perfexplorer_working -n -i ${working_path}clusterTest.py -p "tauData=$1,threshold=$2,callsCutoff=$3"
