(ctx context.Context, path string)
| 92 | } |
| 93 | |
| 94 | func removeFile(ctx context.Context, path string) { |
| 95 | if err := os.Remove(path); err != nil { |
| 96 | log(ctx, err).Error("unable to remove file") |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // inlineFlagset implements the plugin.FlagSet interface. |
| 101 | // Adapted from testFlags in github.com/google/pprof/internal/driver |