MCPcopy Index your code
hub / github.com/pythonprofilers/memory_profiler / enable_by_count

Method enable_by_count

memory_profiler.py:775–780  ·  view source on GitHub ↗

Enable the profiler if it hasn't been enabled before.

(self)

Source from the content-addressed store, hash-verified

773 return self
774
775 def enable_by_count(self):
776 """ Enable the profiler if it hasn't been enabled before.
777 """
778 if self.enable_count == 0:
779 self.enable()
780 self.enable_count += 1
781
782 def disable_by_count(self):
783 """ Disable the profiler if the number of disable requests matches the

Callers 4

_count_ctxmgrMethod · 0.95
runctxMethod · 0.95
__enter__Method · 0.95
test_nested.pyFile · 0.80

Calls 1

enableMethod · 0.95

Tested by

no test coverage detected