Exemplo n.º 1
0
from session_metrics import cumulative, cdf
from plotter import *


def help_message():
    print "program usage:\n\tpython term_nack.py <log-file>\n",\
          "\t-a: [FLAG] Absolute number of Nacks (default)\n",\
          "\t-c: [FLAG] CDF of all files' Nacks\n"


if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Nack', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Nack']['CDF'])
else:
    nack_map = cumulative('Nack', sys.argv[1])
    plotter(nack_map, SCRIPTS['Nack']['DEF'])
Exemplo n.º 2
0
from session_metrics import cumulative, cdf
from plotter import *


def help_message():
    print "program usage:\n\tpython term_timeout.py <log-file>\n",\
          "\t-a: [FLAG] Absolute number of timeouts in each session (default)\n",\
          "\t-c: [FLAG] CDF of all files' timeouts\n"


if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Tout', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Tout']['CDF'])
else:
    timeout_map = cumulative('Tout', sys.argv[1])
    plotter(timeout_map, SCRIPTS['Tout']['DEF'])
Exemplo n.º 3
0
import getopt

from session_metrics import average, cdf
from plotter import *

def help_message():
    print "program usage:\n\tpython term_rtt.py <log-file>\n",\
          "\t-a: [FLAG] Average RTT of each session (default)\n",\
          "\t-c: [FLAG] CDF of RTTs\n"

if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Rtt', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Rtt']['CDF'])
else:
    rtt_map = average('Rtt', sys.argv[1])
    plotter(rtt_map, SCRIPTS['Rtt']['DEF'])
Exemplo n.º 4
0
import getopt

from session_metrics import cumulative, cdf
from plotter import *

def help_message():
    print "program usage:\n\tpython term_retx.py <log-file>\n",\
          "\t-a: [FLAG] Absolute number of rebuffers in each session (default)\n",\
          "\t-c: [FLAG] CDF of all files' rebuffers\n"

if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Retx', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Retx']['CDF'])
else:
    retx_map = cumulative('Retx', sys.argv[1])
    plotter(retx_map, SCRIPTS['Retx']['DEF'])
from session_metrics import average, cdf
from plotter import *


def help_message():
    print "program usage:\n\tpython term_jitter.py <log-file>\n",\
          "\t-a: [FLAG] Average jitter of each session (default)\n",\
          "\t-c: [FLAG] CDF of all files' jitters\n"


if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Jitt', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Jitt']['CDF'])
else:
    jitter_map = average('Jitt', sys.argv[1])
    plotter(jitter_map, SCRIPTS['Jitt']['DEF'])
import getopt

from session_metrics import absolute, cdf
from plotter import *

def help_message():
    print "program usage:\n\tpython term_rebuffers.py <log-file>\n",\
          "\t-a: [FLAG] Absolute number of rebuffers in each session (default)\n",\
          "\t-c: [FLAG] CDF of all files' rebuffers\n"

if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Reb', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Reb']['CDF'])
else:
    rebuffers_map = absolute('Reb', sys.argv[1])
    plotter(rebuffers_map, SCRIPTS['Reb']['DEF'])
import getopt

from session_metrics import absolute, cdf
from plotter import *

def help_message():
    print "program usage:\n\tpython term_startup.py <log-file>\n",\
          "\t-a: [FLAG] Absolute startup delay of each session (default)\n",\
          "\t-c: [FLAG] CDF of all sessions' startup\n"

if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Strt', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Strt']['CDF'])
else:
    startup_map = absolute('Strt', sys.argv[1])
    plotter(startup_map, SCRIPTS['Strt']['DEF'])
Exemplo n.º 8
0
from session_metrics import cumulative, cdf
from plotter import *


def help_message():
    print "program usage:\n\tpython term_segments.py <log-file>\n",\
          "\t-a: [FLAG] Absolute number of downloaded segments in each session (default)\n",\
          "\t-c: [FLAG] CDF of all files' segments\n"


if len(sys.argv) == 1:
    help_message()
    sys.exit(2)
try:
    opts, args = getopt.getopt(sys.argv[2:], "ac")
except getopt.GetoptError:
    help_message()
    sys.exit(2)

plot_type = 'avg'
for opt, arg in opts:
    if opt == '-c':
        plot_type = 'cdf'

if plot_type == 'cdf':
    cdf_map = cdf('Segm', sys.argv[1])
    plotter(cdf_map, SCRIPTS['Segm']['CDF'])
else:
    segments_map = cumulative('Segm', sys.argv[1])
    plotter(segments_map, SCRIPTS['Segm']['DEF'])