Lines Matching defs:stats
34 $ ./httparchive.py stats archive.wpr
37 $ ./httparchive.py stats --host www.example.com archive.wpr
267 def stats(self, command=None, host=None, full_path=None):
268 """Print stats about the archive for all URLs that match given params."""
275 stats = {
284 stats['Domains'][request.host] += 1
285 stats['HTTP_response_code'][self[request].status] += 1
291 stats['content_type'][str_content_type] += 1
295 stats['Documents'][request.host] += 1
297 print >>out, json.dumps(stats, indent=4)
1025 usage='%prog [ls|cat|edit|stats|merge] [options] replay_file(s)',
1065 elif command == 'stats':
1066 print http_archive.stats(options.command, options.host, options.full_path)