We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4d1ed commit f4df5a2Copy full SHA for f4df5a2
1 file changed
cmd/syft/main.go
@@ -2,9 +2,6 @@ package main
2
3
import (
4
"log"
5
- "os"
6
- "runtime"
7
- "runtime/pprof"
8
9
"github.com/anchore/syft/cmd/syft/cli"
10
)
@@ -18,13 +15,4 @@ func main() {
18
15
if err := cli.Execute(); err != nil {
19
16
log.Fatalf("error during command execution: %v", err)
20
17
}
21
- f, err := os.Create("mem.pprof")
22
- if err != nil {
23
- log.Fatal("could not create memory profile: ", err)
24
- }
25
- defer f.Close() // error handling omitted for example
26
- runtime.GC() // get up-to-date statistics
27
- if err := pprof.WriteHeapProfile(f); err != nil {
28
- log.Fatal("could not write memory profile: ", err)
29
30
0 commit comments