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

Method enter_block

tools/toolchain_profiler.py:213–217  ·  view source on GitHub ↗
(block_name)

Source from the content-addressed store, hash-verified

211
212 @staticmethod
213 def enter_block(block_name):
214 with ToolchainProfiler.log_access() as f:
215 f.write(',\n{"pid":' + ToolchainProfiler.mypid_str + ',"subprocessPid":' + str(os.getpid()) + ',"op":"enterBlock","name":"' + block_name + '","time":' + ToolchainProfiler.timestamp() + '}')
216
217 ToolchainProfiler.block_stack.append(block_name)
218
219 @staticmethod
220 def remove_last_occurrence_if_exists(lst, item):

Callers 1

__enter__Method · 0.80

Calls 4

log_accessMethod · 0.80
timestampMethod · 0.80
appendMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected