tinygo/src/runtime/pprof/pprof.go
2022-08-16 09:16:55 +02:00

33 строки
540 Б
Go

package pprof
// TinyGo does not implement pprof. However, a dummy shell is needed for the
// testing package (and testing/internal/pprof).
import (
"errors"
"io"
)
var ErrUnimplemented = errors.New("runtime/pprof: unimplemented")
type Profile struct {
}
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
}
func (p *Profile) WriteTo(w io.Writer, debug int) error {
return ErrUnimplemented
}