Lines Matching refs:domain
158 def run_site(site, domain, args, timeout=None): argument
160 print "RUNNING DOMAIN %s" % domain
171 result = result_template.format(domain=domain, count=count)
261 domain = None
262 if args.domain:
263 domain = args.domain
265 domain = item['domain']
271 domain = m.group(2)
272 entry = [site, domain, None, item['timeout']]
273 if domain not in domains:
274 domains[domain] = entry
276 if not isinstance(domains[domain], int):
277 domains[domain][2] = 1
278 domains[domain] = 1
279 domains[domain] += 1
280 entry[2] = domains[domain]
284 for site, domain, count, timeout in L:
285 if count is not None: domain = "{}%{}".format(domain, count)
286 print(site, domain, timeout)
287 run_site(site, domain, args, timeout)
345 def read_stats(path, domain, args): argument
415 if key not in domain: domain[key] = { 'time_list': [], 'count_list': [] }
416 domain[key]['time_list'].append(entries[key]['time'])
417 domain[key]['count_list'].append(entries[key]['count'])
482 domain = m.group(1)
483 if domain not in domains: domains[domain] = {}
484 read_stats(path, domains[domain], args)
487 for i, domain in enumerate(sorted(domains)):
490 print "{}:".format(domain)
492 domain_stats = domains[domain]
512 for domain, entries in domains.items():
537 domain = m.group(1)
538 if domain not in versions[version]: versions[version][domain] = {}
540 versions[version][domain], args)
544 for domain, entries in domains.items():
556 domains[domain] = stats