You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gosuv/vendor/github.com/gopherjs/gopherjs/compiler/natives/src/runtime/pprof/pprof.go

50 lines
660 B

// +build js
package pprof
import (
"io"
"sync"
)
type Profile struct {
name string
mu sync.Mutex
m map[interface{}][]uintptr
count func() int
write func(io.Writer, int) error
}
func (p *Profile) WriteTo(w io.Writer, debug int) error {
return nil
}
func (p *Profile) Count() int {
return 0
}
func (p *Profile) Name() string {
return ""
}
func (p *Profile) Add(value interface{}, skip int) {
}
func (p *Profile) Remove(value interface{}) {
}
func StartCPUProfile(w io.Writer) error {
return nil
}
func StopCPUProfile() {
}
func WriteHeapProfile(w io.Writer) error {
return nil
}
func Lookup(name string) *Profile {
return nil
}