def action_stats(self, hostname=None):
format = "<STR_LIT>"<EOL>print(format % ("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"))<EOL>for host, details in sorted(self.client.stats(hostname).items()):<EOL><INDENT>print(format % (<EOL>host,<EOL>details.get("<STR_LIT>", <NUM_LIT:0>),<EOL>details.get("<STR_LIT>", <NUM_LIT:0>),<EOL>details.get("<STR_LIT>", <NUM_LIT:0>),<EOL>details.get("<STR_LIT>", <NUM_LIT:0>),<EOL>))<EOL><DEDENT>
Shows stats (possibly limited by hostname)