Skip to content

Commit

Permalink
cleaner output
Browse files Browse the repository at this point in the history
  • Loading branch information
matmerr committed Oct 10, 2024
1 parent b1faad7 commit c63799d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.dll
*.so
*.dylib
*__debug*

# Avoid checking in keys
*.pem
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/framework/kubernetes/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (p *PullPProf) Run() error {
}()

scrape := func() error {
log.Printf("-- scraping pprof profiles --\n")
log.Printf("-- starting scrape pprof profiles --\n")
folder := "./pprof/" + time.Now().Format("2006.01.02-15:04:05") + "/"
err = os.MkdirAll(folder, os.ModePerm)
if err != nil {
Expand All @@ -102,7 +102,8 @@ func (p *PullPProf) Run() error {
}
}

log.Printf("-- scraped profiles saved to to %s --\n", folder)
log.Printf("-- finished scraping profiles, saved to to %s --\n", folder)
log.Printf("waiting %s seconds for next scrape\n", p.ScrapeIntervalSeconds)
return err
}

Expand Down

0 comments on commit c63799d

Please sign in to comment.