()
| 27 | ) |
| 28 | |
| 29 | func main() { |
| 30 | if err := driver.PProf(&driver.Options{UI: newUI()}); err != nil { |
| 31 | fmt.Fprintf(os.Stderr, "pprof: %v\n", err) |
| 32 | os.Exit(2) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // readlineUI implements the driver.UI interface using the |
| 37 | // github.com/chzyer/readline library. |