pprof.mx raw

   1  package pprof
   2  
   3  // Moxie does not implement pprof. However, a dummy shell is needed for the
   4  // testing package (and testing/internal/pprof).
   5  
   6  import (
   7  	"errors"
   8  	"io"
   9  )
  10  
  11  var ErrUnimplemented = errors.New("runtime/pprof: unimplemented")
  12  
  13  type Profile struct{}
  14  
  15  func StartCPUProfile(w io.Writer) error {
  16  	return nil
  17  }
  18  
  19  func StopCPUProfile() {
  20  }
  21  
  22  func WriteHeapProfile(w io.Writer) error {
  23  	return nil
  24  }
  25  
  26  func Lookup(name string) *Profile {
  27  	return nil
  28  }
  29  
  30  func (p *Profile) Name() string {
  31  	return ""
  32  }
  33  
  34  func (p *Profile) Count() int {
  35  	return 0
  36  }
  37  
  38  func (p *Profile) WriteTo(w io.Writer, debug int) error {
  39  	return ErrUnimplemented
  40  }
  41  
  42  func Profiles() []*Profile {
  43  	return nil
  44  }
  45