torch.mps.profiler.start
- torch.mps.profiler.start(mode='interval', wait_until_completed=False)
Start OS Signpost tracing from MPS backend.
The generated OS Signposts could be recorded and viewed in XCode Instruments Logging tool.
- Parameters:
mode () – OS Signpost tracing mode could be “interval”, “event”, or both “interval,event”. The interval mode traces the duration of execution of the operations, whereas event mode marks the completion of executions. See document for more info.