How can I profile code on a remote machine without gui? Unfortunately the machine doesn't have a display so I can't pass the screen via "ssh -X".
Is there a possibility to create a profile remotely and then transfer it to the local machine and load it in CodeXL?
CodeXL does indeed have a command line tool for GPU profiling. Check out the CodeXL User Guide section under "Using CodeXL" -> "GPU Profiler" -> "Using the Command Line Interface".