kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
362 stars 46 forks source link

Support Profiling(#199) #385

Closed Okabe-Rintarou-0 closed 1 month ago

Okabe-Rintarou-0 commented 1 month ago

What type of PR is this? feature

What this PR does / why we need it: Support profiling in kmesh-daemon. Still WIP. Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

codecov-commenter commented 1 month ago

Codecov Report

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

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Flag Coverage Δ
unittests 31.16% <0.00%> (?)

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

Files Coverage Δ
pkg/status/status_server.go 0.00% <0.00%> (ø)
Okabe-Rintarou-0 commented 1 month ago

And register the below handler

HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
HandleFunc("/debug/pprof/profile", pprof.Profile)
HandleFunc("/debug/pprof/profile", pprof.Profile)
HandleFunc("/debug/pprof/trace", pprof.Trace)

I got it, thanks

kmesh-bot commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kmesh-net/kmesh/blob/main/OWNERS)~~ [hzxuzhonghu] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment