Strat profiling after specific time

Is it possible to start the profiling at a specific time? For example, the program starts normally to pass some specific steps and then profiler starts to profile.

Attaching the profiler to a process is possible, but I was wondering if I can do such thing with nv-nsight-cu-cli command.

Nsight Compute respects the cu(da)ProfilerStart/Stop APIs, if those are added to your application. There are command line switches to disable profiling from the start. As usual, you can always have the profiler skip a certain number of kernels, or profile only in specific NVTX contexts. All configuration options can be found here Nsight Compute CLI :: Nsight Compute Documentation

There is no option to start profiling after a defined time interval.

1 Like