(block_name)
| 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): |
no test coverage detected