Skip to content

Commit

Permalink
Lower the CPU collection time to 5 seconds
Browse files Browse the repository at this point in the history
Waiting for 5 seconds is sufficient enough for this demo.
  • Loading branch information
rakyll committed Nov 25, 2018
1 parent 0f3bb45 commit c280e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/helloworld/main.go
Expand Up @@ -24,7 +24,7 @@ import (

func main() {
autopprof.Capture(autopprof.CPUProfile{
Duration: 15 * time.Second,
Duration: 5 * time.Second,
})

for i := 0; i < 5000; i++ {
Expand Down

0 comments on commit c280e51

Please sign in to comment.