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: add pprof to flintlock #504

Merged
merged 1 commit into from
Aug 18, 2022
Merged

feat: add pprof to flintlock #504

merged 1 commit into from
Aug 18, 2022

Conversation

richardcase
Copy link
Member

@richardcase richardcase commented Aug 18, 2022

What this PR does / why we need it:

This change adds the ability to make pprof available via http. By
default it won't be available. If you specify a debug endpoint via
--debug-endpoint then it will start a webserver listening at that
endpoint and pprof is available from there.

We decided to use an endpoint as that will allow users to only expose
the debug endpoint locally or via the network.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Relates #503

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes

@richardcase richardcase added the kind/feature New feature or request label Aug 18, 2022
@richardcase richardcase requested a review from Callisto13 August 18, 2022 13:56
@richardcase
Copy link
Member Author

@Callisto13 - i was thinking instead of using debug-port should i use debug-address so it allows users to decide whether the debug endpoint is localhost or more widely available on the network?

Callisto13
Callisto13 previously approved these changes Aug 18, 2022
@Callisto13
Copy link
Member

i was thinking instead of using debug-port should i use debug-address so it allows users to decide whether the debug endpoint is localhost or more widely available on the network?

🤔 yeh an address might make sense

yitsushi
yitsushi previously approved these changes Aug 18, 2022
@richardcase richardcase dismissed stale reviews from yitsushi and Callisto13 via 1de9c69 August 18, 2022 15:07
This change adds the ability to make pprof available via http. By
default it won't be available. If you specify a debug endpoint via
`--debug-endpoint` then it will start a webserver listening at that
endpoint and pprof is available from there.

We decided to use an endpoint as that will allow users to only expose
the debug endpoint locally or via the network.

Signed-off-by: Richard Case <[email protected]>
@richardcase richardcase merged commit c533a0e into liquidmetal-dev:main Aug 18, 2022
@richardcase richardcase deleted the pprof branch August 18, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants