Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: optional debug endpoint #14

Merged
merged 1 commit into from
May 2, 2022
Merged

feat: optional debug endpoint #14

merged 1 commit into from
May 2, 2022

Conversation

agaffney
Copy link
Contributor

@agaffney agaffney commented May 2, 2022

Fixes #13

@agaffney
Copy link
Contributor Author

agaffney commented May 2, 2022

$ CARDANO_NODE_ADDRESS=localhost CARDANO_NODE_PORT=30000 NETWORK=testnet DEBUG_PORT=9999 ./cardano-submit-api 
{"level":"info","timestamp":"2022-05-02T06:52:19-05:00","caller":"cardano-submit-api/main.go:43","msg":"starting debug listener on localhost:9999"}
{"level":"info","timestamp":"2022-05-02T06:52:19-05:00","caller":"cardano-submit-api/main.go:53","msg":"starting API listener on :8090"}
$ go tool pprof -http :9998 http://localhost:9999/debug/pprof/heap
Fetching profile over HTTP from http://localhost:9999/debug/pprof/heap
Saved profile in /home/agaffney/pprof/pprof.cardano-submit-api.alloc_objects.alloc_space.inuse_objects.inuse_space.002.pb.gz
Serving web UI on http://localhost:9998

@agaffney agaffney merged commit 184ea38 into main May 2, 2022
@agaffney agaffney deleted the feature/debug-endpoint branch May 2, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create debug endpoint
2 participants