MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _put_result

Method _put_result

monai/utils/profiling.py:235–238  ·  view source on GitHub ↗

Add a ProfileResult object to the queue.

(self, name, timedelta, filename, lineno)

Source from the content-addressed store, hash-verified

233 raise AssertionError
234
235 def _put_result(self, name, timedelta, filename, lineno):
236 """Add a ProfileResult object to the queue."""
237 ts = str(datetime.datetime.now())
238 self.queue.put(ProfileResult(name, timedelta, filename, lineno, os.getpid(), ts))
239
240 def _trace_call(self, frame, why, arg):
241 """

Callers 3

_call_profilerMethod · 0.95
profile_ctxMethod · 0.95
__iter__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected