Home | History | Annotate | Download | only in webpagereplay

Lines Matching defs:stats

34   $ ./httparchive.py stats archive.wpr
37 $ ./httparchive.py stats --host www.example.com archive.wpr
266 def stats(self, command=None, host=None, full_path=None):
267 """Print stats about the archive for all URLs that match given params."""
274 stats = {
283 stats['Domains'][request.host] += 1
284 stats['HTTP_response_code'][self[request].status] += 1
290 stats['content_type'][str_content_type] += 1
294 stats['Documents'][request.host] += 1
296 print >>out, json.dumps(stats, indent=4)
966 usage='%prog [ls|cat|edit|stats|merge] [options] replay_file(s)',
1006 elif command == 'stats':
1007 print http_archive.stats(options.command, options.host, options.full_path)