docs: def dump(self, dump_filename, pickle_protocol=pickle.HIGHEST_PROTOCOL):
          """Saves the profiling result to a file
  
          :param dump_filename: path to a file
          :type dump_filename: str
  
          :param pickle_protocol: version of pickle protocol
          :type pickle_protocol: int
          """
          result = self.result()
  
          with open(dump_filename, 'wb') as f:
              pickle.dump((self.__class__, result), f, pickle_protocol)