docs: def dump_stats(self, filename):
          """
          Similar to profile.Profile.dump_stats - but different output format !
          """
          if _isCallgrindName(filename):
              with open(filename, 'w') as out:
                  self.callgrind(out)
          else:
              with io.open(filename, 'w', errors='replace') as out:
                  self.annotate(out)