func (r *Reporter) NewCounter(name string, desc ...string) (*Counter, error) {
	c, err := speed.NewPCPCounter(0, name, desc...)
	if err != nil {
		return nil, err
	}
	r.c.MustRegister(c)
	return &Counter{c}, nil
}
NewCounter creates a new Counter. This requires a name parameter and can
optionally take a couple of description strings, that are used to create the
underlying speed.Counter and are reported by PCP.
package pcp
import (
	"github.com/performancecopilot/speed"
	"github.com/go-kit/kit/metrics"
)
type Reporter struct {
	c *speed.PCPClient
}
func NewReporter(appname string) (*Reporter, error) {
	c, err := speed.NewPCPClient(appname)
	if err != nil {
		return nil, err
	}
	return &Reporter{c}, nil
}
func (r *Reporter) Start() { r.c.MustStart() }
func (r *Reporter) Stop() { r.c.MustStop() }
type Counter struct {
	c speed.Counter
}