mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-16 18:08:40 +00:00
wasm: drop pprof dependency
We can use the browser tools to profile, pprof adds 200K to the binary size. Updates #3157 Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
parent
bb67999808
commit
c41837842b
@ -2,6 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
|
// +build !js
|
||||||
|
|
||||||
// Package logheap logs a heap pprof profile.
|
// Package logheap logs a heap pprof profile.
|
||||||
package logheap
|
package logheap
|
||||||
|
|
||||||
|
8
log/logheap/logheap_js.go
Normal file
8
log/logheap/logheap_js.go
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package logheap
|
||||||
|
|
||||||
|
func LogHeap(postURL string) {
|
||||||
|
}
|
@ -2,6 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
|
// +build !js
|
||||||
|
|
||||||
package wgengine
|
package wgengine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
18
wgengine/watchdog_js.go
Normal file
18
wgengine/watchdog_js.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build js
|
||||||
|
|
||||||
|
package wgengine
|
||||||
|
|
||||||
|
import "tailscale.com/net/dns/resolver"
|
||||||
|
|
||||||
|
type watchdogEngine struct {
|
||||||
|
Engine
|
||||||
|
wrap Engine
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *watchdogEngine) GetResolver() (r *resolver.Resolver, ok bool) {
|
||||||
|
return nil, false
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user