for iter in range(N):
                  code_iteration_to_profile(iter)
                  # send a signal to the profiler that the next iteration has started
                  p.step()
step()
  Signals the profiler that the next profiling step has started.

class torch.profiler.ProfilerAction(value)
Profiler actions that can be taken at the specified intervals
class torch.profiler.ProfilerActivity
Members:
CPU
CUDA
property name
torch.profiler.schedule(*, wait, warmup, active, repeat=0, skip_first=0)
Returns a callable that can be used as profiler "schedule"
   argument. The profiler will skip the first "skip_first" steps, then
   wait for "wait" steps, then do the warmup for the next "warmup"
   steps, then do the active recording for the next "active" steps and
   then repeat the cycle starting with "wait" steps. The optional
   number of cycles is specified with the "repeat" parameter, the zero