mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-30 05:25:35 +00:00
239ad57446
And delete Debug.GoroutineDumpURL, which was already in c2n. Updates #8923 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
18 lines
275 B
Go
18 lines
275 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !js && !wasm
|
|
|
|
package ipnlocal
|
|
|
|
import (
|
|
"net/http"
|
|
"runtime/pprof"
|
|
)
|
|
|
|
func init() {
|
|
c2nLogHeap = func(w http.ResponseWriter, r *http.Request) {
|
|
pprof.WriteHeapProfile(w)
|
|
}
|
|
}
|