MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __enter__

Method __enter__

tools/toolchain_profiler.py:33–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 return super().__call__(func)
32
33 def __enter__(self):
34 if EMPROFILE == 2:
35 indentation = ' ' * Logger.depth
36 logger.info('%sstart block "%s"', indentation, self.name)
37 Logger.depth += 1
38 self.start = time.time()
39
40 def __exit__(self, exc_type, value, traceback):
41 # When a block ends debug log the total duration.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected