MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / do_read

Method do_read

tools/python-3.11.9-amd64/Lib/pstats.py:696–712  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

694 print("Leave the profile browser.", file=self.stream)
695
696 def do_read(self, line):
697 if line:
698 try:
699 self.stats = Stats(line)
700 except OSError as err:
701 print(err.args[1], file=self.stream)
702 return
703 except Exception as err:
704 print(err.__class__.__name__ + ':', err, file=self.stream)
705 return
706 self.prompt = line + "% "
707 elif len(self.prompt) > 2:
708 line = self.prompt[:-2]
709 self.do_read(line)
710 else:
711 print("No statistics object is current -- cannot reload.", file=self.stream)
712 return 0
713 def help_read(self):
714 print("Read in profile data from a specified file.", file=self.stream)
715 print("Without argument, reload the current file.", file=self.stream)

Callers 1

__init__Method · 0.95

Calls 2

StatsClass · 0.70
printFunction · 0.50

Tested by

no test coverage detected