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

Method runcall

tools/python-3.11.9-amd64/Lib/cProfile.py:107–112  ·  view source on GitHub ↗
(self, func, /, *args, **kw)

Source from the content-addressed store, hash-verified

105
106 # This method is more useful to profile a single function call.
107 def runcall(self, func, /, *args, **kw):
108 self.enable()
109 try:
110 return func(*args, **kw)
111 finally:
112 self.disable()
113
114 def __enter__(self):
115 self.enable()

Callers

nothing calls this directly

Calls 2

enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected