Changeset 5 for trunk/bin/sampler


Ignore:
Timestamp:
07/08/15 16:00:10 (9 years ago)
Author:
tim
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/sampler

    r4 r5  
    3636parser.add_argument('-c', dest='cases', type=str, default='{"short":10000,"long":13000}',
    3737                    help='JSON representation of echo timing cases.')
    38 parser.add_argument('--tcpts', action='store_true', help='Enable TCP timestamp profiling')
     38parser.add_argument('--no-tcpts', action='store_true', help='Disbale TCP timestamp profiling')
    3939parser.add_argument('session_name', default=None,
    4040                    help='Name for the sampler session (used in output filenames)')
     
    100100
    101101meta = {'tcpts_mean':None,'tcpts_stddev':None,'tcpts_slopes':None}
    102 if options.tcpts:
     102if not options.no_tcpts:
    103103    sys.stderr.write("INFO: Probing target for TCP timestamp precision...\n")
    104104    sniffer_fp = tempfile.NamedTemporaryFile('w+t')
     
    134134
    135135sid = 0
    136 sample_types = [('train',int(num_samples*2/7)),
    137                 ('train_null',int(num_samples*3/7)+1),
    138                 ('test',int(num_samples*2/7)),
     136sample_types = [('train',int(num_samples*1/5)),
     137                ('train_null',int(num_samples*2/5)),
     138                ('test',int(num_samples*2/5)),
    139139                ('test_null',0)]
    140140report_interval = 20
Note: See TracChangeset for help on using the changeset viewer.