MCPcopy Index your code
hub / github.com/python/cpython / do_add

Method do_add

Lib/pstats.py:713–721  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

711 print(" that match it are printed.", file=self.stream)
712
713 def do_add(self, line):
714 if self.stats:
715 try:
716 self.stats.add(line)
717 except OSError as e:
718 print("Failed to load statistics for %s: %s" % (line, e), file=self.stream)
719 else:
720 print("No statistics object is loaded.", file=self.stream)
721 return 0
722 def help_add(self):
723 print("Add profile info from given file to current statistics object.", file=self.stream)
724

Callers 1

pstats.pyFile · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected