tsweb: don't hook up pprof handlers in javascript builds

Updates #15160

Signed-off-by: David Anderson <dave@tailscale.com>
This commit is contained in:
David Anderson
2025-03-19 08:34:27 -07:00
committed by M. J. Fromberger
parent 37f5fd2ec1
commit a3cc7123ff
4 changed files with 33 additions and 12 deletions
+8
View File
@@ -0,0 +1,8 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
package tsweb
func addProfilingHandlers(d *DebugHandler) {
// No pprof in js builds, pprof doesn't work and bloats the build.
}