Skip to content

Commit

Permalink
Start pprof HTTP server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jun 23, 2023
1 parent b4306a2 commit 243c2ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"context"
"flag"
"log"
"net/http"
_ "net/http/pprof"

"github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server"
"github.com/hashicorp/terraform-provider-aws/internal/provider"
Expand All @@ -19,6 +21,10 @@ func main() {
log.Fatal(err)
}

go func() {
http.ListenAndServe("localhost:8080", nil)
}()

var serveOpts []tf5server.ServeOpt

if *debugFlag {
Expand Down

0 comments on commit 243c2ee

Please sign in to comment.