Enable Unity's Profiler (starts recording frame data into Unity's ring buffer).
(ctx: typer.Context)
| 55 | |
| 56 | @profiler_app.command("start") |
| 57 | def 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") |
nothing calls this directly
no test coverage detected