Does the profiler call the 'cudaEventRecord'?

I am currently using the RTX Quadro 6000 for the DNN provided by torchvision.

When I got the profile result with nsys, I found that ‘cudaEventRecord’ that I didn’t call was called.

Are these calls automatically called by the profiler?

Or calling internally the torch function?