cdfWorkloadTimes = create_cdf.create_cdf(workloadTimes) cdfWorkloadTimes.cdf(sto, verbose) if (verbose): print "Flow times CDF" cdfFlowTimes = create_cdf.create_cdf(flowTimes) cdfFlowTimes.cdf(fto, verbose) if (verbose): print "Flow Mbps CDF" cdfFlowMbps = create_cdf.create_cdf(flowMbps) cdfFlowMbps.cdf(fmo, verbose) # # CDFs are generated, let's plot them now # pltSt = create_gnuplot.create_gnuplot(sto) pltSt.plot_many_plots("Time (sec)", "Fraction", [sto]) pltFt = create_gnuplot.create_gnuplot(fto) pltFt.plot_many_plots("Time (sec)", "Fraction", [fto]) pltMb = create_gnuplot.create_gnuplot(fmo) pltMb.plot_many_plots("Mbps", "Fraction", [fmo]) #os.system("mv flowMbps* %s"%(store)) #os.system("mv flowTimes* %s"%(store)) #os.system("mv workloadTimes* %s"%(store))
xlabel = sys.argv[3] # queue counter: The counter for measuring how many http requests are on the fly datapoints = [] linecnt = 0 for lines in file: if lines[0] == '#': continue # print lines linecnt = linecnt + 1 tuples = lines.split() if len(tuples) < index: index = len(tuples) - 1 datapoints.append(float(tuples[index])) file.close() verbose = 1 sto = sys.argv[1] + '.cdf' dps = create_cdf.create_cdf(datapoints) dps.cdf(sto, verbose) # # CDFs are generated, let's plot them now # pltSt = create_gnuplot.create_gnuplot(sto) pltSt.plot_many_plots(xlabel, "Fraction", [sto])