(path string)
| 114 | } |
| 115 | |
| 116 | func runMemProfile(path string) { |
| 117 | f, err := os.Create(path) |
| 118 | if err != nil { |
| 119 | log.Fatal(err) |
| 120 | } |
| 121 | runtime.GC() |
| 122 | pprof.Lookup("allocs").WriteTo(f, 0) |
| 123 | f.Close() |
| 124 | } |
| 125 | |
| 126 | func FileExists(path string) bool { |
| 127 | if path == "-" { |