def formatted(self):
        ret = "Statistics (times in seconds, lengths in Bytes):\n"
        if self.enabled:
            snapshot = sorted(self.snapshot(),
                              key=lambda item: item[1].avg_time,
                              reverse=True)
            include_svr = False
            for name, stats in snapshot:
                if stats._server_time_stored:
                    include_svr = True
            if include_svr:
                ret += OperationStatistic._formatted_header_w_svr
            else:
                ret += OperationStatistic._formatted_header
            for name, stats in snapshot:
                ret += stats.formatted(include_svr)
        else:
            ret += "Disabled"
        return ret.strip()