mirror of
https://github.com/google/gops.git
synced 2024-11-27 08:31:17 +02:00
Don't log path to profile dump twice (#98)
The path to the profile dump is already logged after writing the file (cmd.go line 121). Remove the duplicate log line. Co-authored-by: Emmanuel T Odeke <odeke@ualberta.ca>
This commit is contained in:
parent
71c4255d55
commit
9025be33d5
1
cmd.go
1
cmd.go
@ -143,7 +143,6 @@ func pprof(addr net.TCPAddr, p byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("Profiling dump saved to: %s\n", tmpDumpFile.Name())
|
|
||||||
fmt.Printf("Binary file saved to: %s\n", tmpBinFile.Name())
|
fmt.Printf("Binary file saved to: %s\n", tmpBinFile.Name())
|
||||||
cmd := exec.Command("go", "tool", "pprof", tmpBinFile.Name(), tmpDumpFile.Name())
|
cmd := exec.Command("go", "tool", "pprof", tmpBinFile.Name(), tmpDumpFile.Name())
|
||||||
cmd.Env = os.Environ()
|
cmd.Env = os.Environ()
|
||||||
|
Loading…
Reference in New Issue
Block a user