You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/localapi
Brad Fitzpatrick efb84ca60d ipn/localapi, cmd/tailscale: add CPU & memory profile support, debug command
This was already possible on Linux if you ran tailscaled with --debug
(which runs net/http/pprof), but it requires the user have the Go
toolchain around.

Also, it wasn't possible on macOS, as there's no way to run the IPNExtension
with a debug server (it doesn't run tailscaled).

And on Windows it's super tedious: beyond what users want to do or
what we want to explain.

Instead, put it in "tailscale debug" so it works and works the same on
all platforms. Then we can ask users to run it when we're debugging something
and they can email us the output files.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
cert.go ipn/localapi: refresh ACME certs in background two weeks in advance 3 years ago
disabled_stubs.go ipn/localapi: move cert fetching code to localapi, cache, add cert subcommand 3 years ago
localapi.go ipn/localapi, cmd/tailscale: add CPU & memory profile support, debug command 3 years ago
profile.go ipn/localapi, cmd/tailscale: add CPU & memory profile support, debug command 3 years ago