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 bc050ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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
2 changes: 1 addition & 1 deletion test/e2e/retina_longrunning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
)

// TestE2ERetina tests all e2e scenarios for retina
// Scrape PProf over a long running datapath tests
func TestLongRunningRetina(t *testing.T) {
settings, err := LoadInfraSettings()
require.NoError(t, err)
Expand Down

0 comments on commit bc050ee

Please sign in to comment.