class_docstr: Profile(timer=None, timeunit=None, subcalls=True, builtins=True)
  
  Builds a profiler object using the specified timer function.
  The default timer is a fast built-in one based on real time.
  For custom timer functions returning integers, timeunit can
  be a float specifying a scale (i.e. how long each integer unit
  is, in seconds).
class_docstr_tok: ["Profile","(","timer=None",",","timeunit=None",",","subcalls=True",",","builtins=True",")","Builds","a","profiler","object","using","the","specified","timer","function",".","The","default","timer","is","a","fast","built-in","one","based","on","real","time",".","For","custom","timer","functions","returning","integers",",","timeunit","can","be","a","float","specifying","a","scale","(","i.e",".","how","long","each","integer","unit","is",",","in","seconds",")","."]
code: def dump_stats(self, file):
      import marshal
  
      with open(file, "wb") as f:
          self.create_stats()
          marshal.dump(self.stats, f)
  
file_path: cpython/Lib/cProfile.py
imports: import _lsprof
  import importlib.machinery
  import io
  import profile
label_desc: Use image node_id 2 for calling the Profile obj's underlying member method code with example usage: obj.dump_stats(file) without return types