func Options(options ...Option) Option {
	return func(cfg *Config) error {
		for _, o := range options {
			err := o(cfg)
			if err != nil {
				return err
			}
		}
		return nil
	}
}
Options composes multiple options together.
package perf
import (
	"encoding/binary"
	"encoding/csv"
	"fmt"
	"io"
	"os"
	"runtime"
	"sync"
	"syscall"
	"unsafe"
	"github.com/pwaller/perf/gen"
)
type Option func(*Config) error