samply
samply copied to clipboard
[question] running samply on a remote server?
I have times where I want to profile a program running on a remote server via SSH. It seems samply assumes that the symbol server is on the machine running the profiling, but ssh port forwarding also seems to fail. Is there a recommended way to be able to profile remotely, and still see the results with all symbols?
For what it's worth, running ssh -L 3000:localhost:3000 [email protected] did the trick for me with samply. on the devserver, i ran samply load --no-open profile.json -P 3000 and it worked well for me!
I usually use VS Code's SSH support - in a "remote" window, the built-in terminal in VS Code has all kinds of magic built in. It forwards ports automatically and even opens the browser on the client when samply wants to open it on the host.