mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
runtime/pprof, runtime/trace: stub some additional functions
These are necessary to import some parts of the net/http package.
This commit is contained in:
@@ -10,8 +10,7 @@ import (
|
||||
|
||||
var ErrUnimplemented = errors.New("runtime/pprof: unimplemented")
|
||||
|
||||
type Profile struct {
|
||||
}
|
||||
type Profile struct{}
|
||||
|
||||
func StartCPUProfile(w io.Writer) error {
|
||||
return nil
|
||||
@@ -28,6 +27,18 @@ func Lookup(name string) *Profile {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *Profile) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (p *Profile) Count() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (p *Profile) WriteTo(w io.Writer, debug int) error {
|
||||
return ErrUnimplemented
|
||||
}
|
||||
|
||||
func Profiles() []*Profile {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user