- Timestamp:
- 07/08/15 16:00:10 (9 years ago)
- Location:
- trunk/bin
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/sampler
r4 r5 36 36 parser.add_argument('-c', dest='cases', type=str, default='{"short":10000,"long":13000}', 37 37 help='JSON representation of echo timing cases.') 38 parser.add_argument('-- tcpts', action='store_true', help='Enable TCP timestamp profiling')38 parser.add_argument('--no-tcpts', action='store_true', help='Disbale TCP timestamp profiling') 39 39 parser.add_argument('session_name', default=None, 40 40 help='Name for the sampler session (used in output filenames)') … … 100 100 101 101 meta = {'tcpts_mean':None,'tcpts_stddev':None,'tcpts_slopes':None} 102 if options.tcpts:102 if not options.no_tcpts: 103 103 sys.stderr.write("INFO: Probing target for TCP timestamp precision...\n") 104 104 sniffer_fp = tempfile.NamedTemporaryFile('w+t') … … 134 134 135 135 sid = 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)),136 sample_types = [('train',int(num_samples*1/5)), 137 ('train_null',int(num_samples*2/5)), 138 ('test',int(num_samples*2/5)), 139 139 ('test_null',0)] 140 140 report_interval = 20
Note: See TracChangeset
for help on using the changeset viewer.