summaryrefslogtreecommitdiff
path: root/bin/dns_decoder_local_perf_hist.sh
blob: 11a48e2d9f8edda7ff00b25feb92f04e46e812b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

ARGC=$#
EXPORTER=/opt/tsg/framework/bin/fieldstat_exporter.py
TARGET=/opt/tsg/sapp/metrics/dns_decoder_perf_test.json

case $1 in
    -h|--help)
        echo "$0"
        echo "Usage: [exporter] [target]"
        echo "  exporter: path of exporter, default is $EXPORTER"
        echo "  target: path of target file, default is $TARGET"
        exit 0
        ;;
esac

case $ARGC in
  	1)
		EXPORTER=$1
	  ;;
  	2)
		EXPORTER=$1
		TARGET=$2
	  ;;
esac
#new version
python3 $EXPORTER local -b 0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.99 -f summary -j $TARGET