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

Method exit_block

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

Source from the content-addressed store, hash-verified

226
227 @staticmethod
228 def exit_block(block_name):
229 if ToolchainProfiler.remove_last_occurrence_if_exists(ToolchainProfiler.block_stack, block_name):
230 with ToolchainProfiler.log_access() as f:
231 f.write(',\n{"pid":' + ToolchainProfiler.mypid_str + ',"subprocessPid":' + str(os.getpid()) + ',"op":"exitBlock","name":"' + block_name + '","time":' + ToolchainProfiler.timestamp() + '}')
232
233 @staticmethod
234 def exit_all_blocks():

Callers 2

exit_all_blocksMethod · 0.80
__exit__Method · 0.80

Calls 4

log_accessMethod · 0.80
timestampMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected