Using visual profiler to calculate texture cache hit rate

Hi

I’d like to use visual profiler to calculate texture cache hit rate in my program. I use

nvprof --events tex0_cache_sector_queries,tex0_cache_sector_misses --print-gpu-trace -o temp.dat 1.exe -nolog >NUL 2>&1

and

nvprof -i temp.dat --print-gpu-trace --csv 2> csvfile

to print results in a csv file. But the program was shut down immediately after the display window shows.

I would appreciate your help!
RY ZHU

BTW I’m using CUDA 10.0 in WIN10 to execute my program.

Have you tried “nvvp” instead?