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

Function profiler_stop

unity_cli/cli/commands/profiler.py:71–78  ·  view source on GitHub ↗

Pause the Profiler. Previously captured frames stay available for 'frames'/'snapshot'.

(ctx: typer.Context)

Source from the content-addressed store, hash-verified

69
70@profiler_app.command("stop")
71def profiler_stop(ctx: typer.Context) -> None:
72 """Pause the Profiler. Previously captured frames stay available for 'frames'/'snapshot'."""
73 context: CLIContext = ctx.obj
74 try:
75 result = context.client.profiler.stop()
76 print_success(result.get("message", "Profiler stopped"))
77 except UnityCLIError as e:
78 _handle_error(e)
79
80
81@profiler_app.command("snapshot")

Callers

nothing calls this directly

Calls 4

print_successFunction · 0.90
_handle_errorFunction · 0.90
stopMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected