'Dump counters to file'

def dump(self, filename):

    try:
        with open(filename, u'wb') as fp:
            cPickle.dump(self.counters, fp)
    except Exception as e:
        logging.warning(u"can't    dump    counter    to    file    %s:    %s", filename, e)
        return False
    return True
