MCPcopy Create free account
hub / github.com/1jehuang/jcode / main

Function main

scripts/profile_single_spawn.py:230–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228
229
230def main() -> None:
231 args = parse_args()
232 result = profile_single_spawn(args.binary, args.cwd, args.timeout)
233 if args.json:
234 print(json.dumps(result, indent=2))
235 return
236
237 print(f"temp root: {result['temp_root']}")
238 print(f"session id: {result['session_id']}")
239 print(f"log path: {result['log_path']}")
240 if result["first_output_ms"] is not None:
241 print(f"first output: {result['first_output_ms']:.1f}ms")
242 else:
243 print("first output: none")
244 print("timings:")
245 for line in result["timing_lines"]:
246 print(f" {line}")
247
248
249if __name__ == "__main__":

Callers 1

Calls 2

profile_single_spawnFunction · 0.85
parse_argsFunction · 0.70

Tested by

no test coverage detected