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

Add pprof port to bpfagent controller #40

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

msherif1234
Copy link
Contributor

@msherif1234 msherif1234 commented Jul 9, 2024

add pprof port for profile to collect pprof
1- set profiling-bind-address to :6060
2- setup port forwarding oc -n bpfman port-forward bpfman-daemon-2hgf6 6060
3- collect cpu profile curl "http://localhost:6060/debug/pprof/profile?duration=20" -o cpu-profile.out
4- use web interface to view profile go tool pprof -http=:8080 ./cpu-profile.out

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 27.39%. Comparing base (1bbe729) to head (5a37d97).
Report is 3 commits behind head on main.

Files Patch % Lines
cmd/bpfman-agent/main.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
- Coverage   27.40%   27.39%   -0.02%     
==========================================
  Files          81       81              
  Lines        6965     6968       +3     
==========================================
  Hits         1909     1909              
- Misses       4870     4873       +3     
  Partials      186      186              
Flag Coverage Δ
unittests 27.39% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cmd/bpfman-agent/main.go Outdated Show resolved Hide resolved
Copy link
Contributor

mergify bot commented Jul 11, 2024

@msherif1234, this pull request is now in conflict and requires a rebase.

Copy link
Contributor

mergify bot commented Jul 14, 2024

@msherif1234, this pull request is now in conflict and requires a rebase.

@mergify mergify bot added the needs-rebase label Jul 14, 2024
Copy link
Contributor

@anfredette anfredette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify mergify bot merged commit 482d959 into bpfman:main Jul 15, 2024
12 checks passed
msherif1234 pushed a commit to msherif1234/bpfman-operator that referenced this pull request Oct 30, 2024
…/ocp-bpfman-agent

chore(deps): update ocp-bpfman-agent to 6814fed
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.

3 participants