MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / profiler_start

Function profiler_start

unity_cli/cli/commands/profiler.py:57–67  ·  view source on GitHub ↗

Enable Unity's Profiler (starts recording frame data into Unity's ring buffer).

(ctx: typer.Context)

Source from the content-addressed store, hash-verified

55
56@profiler_app.command("start")
57def profiler_start(ctx: typer.Context) -> None:
58 """Enable Unity's Profiler (starts recording frame data into Unity's ring buffer)."""
59 context: CLIContext = ctx.obj
60 try:
61 result = context.client.profiler.start()
62 print_success(result.get("message", "Profiler started"))
63 warning = result.get("warning")
64 if warning:
65 print_warning(warning)
66 except UnityCLIError as e:
67 _handle_error(e)
68
69
70@profiler_app.command("stop")

Callers

nothing calls this directly

Calls 5

print_successFunction · 0.90
print_warningFunction · 0.90
_handle_errorFunction · 0.90
startMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected