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

Method get_results

monai/utils/profiling.py:302–308  ·  view source on GitHub ↗

Get a fresh results dictionary containing fresh tuples of ProfileResult objects.

(self)

Source from the content-addressed store, hash-verified

300 self.results[result.name].append(result)
301
302 def get_results(self):
303 """Get a fresh results dictionary containing fresh tuples of ProfileResult objects."""
304 if not self._is_parent():
305 raise RuntimeError("Only parent process can collect results")
306
307 with self.lock:
308 return {k: tuple(v) for k, v in self.results.items()}
309
310 @contextmanager
311 def profile_ctx(self, name, caller=None):

Callers 9

get_times_summaryMethod · 0.95
dump_csvMethod · 0.95
test_emptyMethod · 0.95
test_profile_contextMethod · 0.80
test_profile_callableMethod · 0.80
test_handlerMethod · 0.80

Calls 1

_is_parentMethod · 0.95

Tested by 7

test_emptyMethod · 0.76
test_profile_contextMethod · 0.64
test_profile_callableMethod · 0.64
test_handlerMethod · 0.64