Lines Matching refs:domain
155 def run_site(site, domain, args, timeout=None): argument
157 print "RUNNING DOMAIN %s" % domain
168 result = result_template.format(domain=domain, count=count)
258 domain = None
259 if args.domain:
260 domain = args.domain
262 domain = item['domain']
268 domain = m.group(2)
269 entry = [site, domain, None, item['timeout']]
270 if domain not in domains:
271 domains[domain] = entry
273 if not isinstance(domains[domain], int):
274 domains[domain][2] = 1
275 domains[domain] = 1
276 domains[domain] += 1
277 entry[2] = domains[domain]
281 for site, domain, count, timeout in L:
282 if count is not None: domain = "{}%{}".format(domain, count)
283 print(site, domain, timeout)
284 run_site(site, domain, args, timeout)
342 def read_stats(path, domain, args): argument
396 if key not in domain: domain[key] = { 'time_list': [], 'count_list': [] }
397 domain[key]['time_list'].append(entries[key]['time'])
398 domain[key]['count_list'].append(entries[key]['count'])
463 domain = m.group(1)
464 if domain not in domains: domains[domain] = {}
465 read_stats(path, domains[domain], args)
468 for i, domain in enumerate(sorted(domains)):
471 print "{}:".format(domain)
473 domain_stats = domains[domain]
493 for domain, entries in domains.items():
518 domain = m.group(1)
519 if domain not in versions[version]: versions[version][domain] = {}
521 versions[version][domain], args)
525 for domain, entries in domains.items():
537 domains[domain] = stats