(zw *zip.Writer, name, profile string, debug int)
| 190 | } |
| 191 | |
| 192 | func addProfile(zw *zip.Writer, name, profile string, debug int) error { |
| 193 | w, err := zw.Create(name) |
| 194 | if err != nil { |
| 195 | return err |
| 196 | } |
| 197 | p := pprof.Lookup(profile) |
| 198 | if p == nil { |
| 199 | _, err = io.WriteString(w, "profile not available\n") |
| 200 | return err |
| 201 | } |
| 202 | return p.WriteTo(w, debug) |
| 203 | } |
| 204 | |
| 205 | func addRedactedConfig(zw *zip.Writer, configPath string) error { |
| 206 | w, err := zw.Create("client_config.redacted.json") |
no outgoing calls
no test coverage detected