title: CUDA profiling inside kernel
body: <p>Is there any option to profile a CUDA kernel? Not as a whole, but rather part of it. I have some device functions invocation and I want to measure their times. Are there any flags/events/instructions that I can set and then it will be visible in NVIDIA Visual Profiler? Or do I need to do it manually by inserting <code>cudaEventCreate</code> and similar functions.</p>