code: def dump(self, id, path):
          
          if not os.path.exists(path):
              os.makedirs(path)
          stats = self.stats()
          if stats:
              p = os.path.join(path, "rdd_%d.pstats" % id)
              stats.dump_stats(p)
docs: Dump the profile into path, id is the RDD id