using cudaprof from command line

Can cudaprof be used from command line? If so, how?

I remember using it on an earlier system D870 but that was when I was using a terminal connected directly to the server. I’m now using systems through winscp, putty or ssh clients. How can I use cudaprof in this situation?

export CUDA_PROFILE=1

There should be a doc describing all the other settings ( you can change the name of the output and the signals).