コード例 #1
0
    done={}
    adder=""
    print "SCENARIO OPTIONS ",plan.cs.scenario_options
    for rate in rates:
        for nobjectsindex in range(len(nobjectlist)):

            cs.oseg_cache_size=caches[nobjectsindex];
            
            nobjects=nobjectlist[nobjectsindex]
            if nobjects in done:
                adder+='c';
                done={}
            msgfile='messagetrace.'+str(nobjects);
            global trmsgfile

            cs.num_sl_objects=nobjects;
            cs.message_trace_file=msgfile;
            trace_location=cs.pack_dir+'/'+msgfile
            trmsgfile=trace_location
            print 'loading file '+cs.object_sl_file+' with trace '+msgfile
            plan.run(rate)
            plan.analysis()
            nam='endtoend';
            
            if len(rates)>1:
                nam+='-'+str(rate);
            nam+=adder
            nam+='.'
            nam+=str(nobjects)
            os.rename(flow_fairness.get_latency_logfile_name(rate),nam);
            done[nobjects]=True
コード例 #2
0
    done = {}
    adder = ""
    print "SCENARIO OPTIONS ", plan.cs.scenario_options
    for rate in rates:
        for nobjectsindex in range(len(nobjectlist)):

            cs.oseg_cache_size = caches[nobjectsindex]

            nobjects = nobjectlist[nobjectsindex]
            if nobjects in done:
                adder += 'c'
                done = {}
            msgfile = 'messagetrace.' + str(nobjects)
            global trmsgfile

            cs.num_sl_objects = nobjects
            cs.message_trace_file = msgfile
            trace_location = cs.pack_dir + '/' + msgfile
            trmsgfile = trace_location
            print 'loading file ' + cs.object_sl_file + ' with trace ' + msgfile
            plan.run(rate)
            plan.analysis()
            nam = 'endtoend'

            if len(rates) > 1:
                nam += '-' + str(rate)
            nam += adder
            nam += '.'
            nam += str(nobjects)
            os.rename(flow_fairness.get_latency_logfile_name(rate), nam)
            done[nobjects] = True