-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a9818e9
to
86d501f
Compare
@msherif1234, this pull request is now in conflict and requires a rebase. |
@msherif1234, this pull request is now in conflict and requires a rebase. |
Signed-off-by: Mohamed Mahmoud <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…/ocp-bpfman-agent chore(deps): update ocp-bpfman-agent to 6814fed
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