MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / addProfile

Function addProfile

cmd/client/diagnostics.go:192–203  ·  view source on GitHub ↗
(zw *zip.Writer, name, profile string, debug int)

Source from the content-addressed store, hash-verified

190}
191
192func 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
205func addRedactedConfig(zw *zip.Writer, configPath string) error {
206 w, err := zw.Create("client_config.redacted.json")

Callers 1

writeDiagnosticsZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected