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

chore: Add a global config to enable pprof #532

Merged
merged 2 commits into from
Jun 16, 2024
Merged

chore: Add a global config to enable pprof #532

merged 2 commits into from
Jun 16, 2024

Conversation

jschwinger233
Copy link
Member

Background

This PR adds a new global config pprof_port to specify (and enable/disable) pprof server. Users can also enable or disable pprof on the fly using dae reload.

Checklist

Full Changelogs

  • [Implement ...]

Issue Reference

Closes #[issue number]

Test Result

@dae-prow dae-prow bot added the chore label Jun 9, 2024
@jschwinger233 jschwinger233 changed the title chore: Add global config to enable pprof chore: Add a global config to enable pprof Jun 9, 2024
@jschwinger233 jschwinger233 marked this pull request as ready for review June 9, 2024 18:45
@jschwinger233 jschwinger233 requested a review from a team as a code owner June 9, 2024 18:45
sumire88
sumire88 previously approved these changes Jun 11, 2024
@sumire88 sumire88 requested a review from mzz2017 June 11, 2024 13:52
@mzz2017
Copy link
Contributor

mzz2017 commented Jun 15, 2024

我之前测试的时候发现引入 http 包会带来比较大的二进制大小膨胀,可以麻烦测试一下吗?

@jschwinger233
Copy link
Member Author

@mzz2017 我对比了下 PR build: https://github.com/daeuniverse/dae/actions/runs/9441996291?pr=532

Arch With pprof Without pprof
arm64 11MB 10.7MB
x64 11.6MB 11.3MB

会增加 0.3MB 大小

mzz2017
mzz2017 previously approved these changes Jun 15, 2024
example.dae Outdated Show resolved Hide resolved
@dae-prow
Copy link
Contributor

dae-prow bot commented Jun 15, 2024

❌ Your branch is currently out-of-sync to main. No worry, I will fix it for you.

example.dae Outdated Show resolved Hide resolved
@dae-prow
Copy link
Contributor

dae-prow bot commented Jun 16, 2024

❌ Your branch is currently out-of-sync to main. No worry, I will fix it for you.

@mzz2017
Copy link
Contributor

mzz2017 commented Jun 16, 2024

LGTM

@jschwinger233 jschwinger233 merged commit 137e8f2 into main Jun 16, 2024
29 checks passed
@jschwinger233 jschwinger233 deleted the gray/pprof branch June 16, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants