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

Turn profiling on/off runtime #543

Merged
merged 10 commits into from
Mar 21, 2022

Conversation

samutamm
Copy link
Contributor

...using admin API.

Close #532

pkg/api/profile.go Outdated Show resolved Hide resolved
pkg/api/profile.go Outdated Show resolved Hide resolved
pkg/api/profile.go Outdated Show resolved Hide resolved
cmd/client/command/profile.go Outdated Show resolved Hide resolved
pkg/api/profile.go Outdated Show resolved Hide resolved
@localvar
Copy link
Collaborator

@samutamm , seems two different changes are in the PR

@samutamm
Copy link
Contributor Author

@samutamm , seems two different changes are in the PR

Oups! Now it looks ok again

pkg/api/profile.go Outdated Show resolved Hide resolved
@samutamm samutamm requested a review from localvar March 18, 2022 01:27
@samutamm samutamm requested a review from xxx7xxxx March 18, 2022 10:11
@codecov-commenter
Copy link

Codecov Report

Merging #543 (e616217) into main (dce1b84) will decrease coverage by 1.98%.
The diff coverage is 77.19%.

@@            Coverage Diff             @@
##             main     #543      +/-   ##
==========================================
- Coverage   80.63%   78.65%   -1.99%     
==========================================
  Files          88       94       +6     
  Lines       10122    10818     +696     
==========================================
+ Hits         8162     8509     +347     
- Misses       1510     1823     +313     
- Partials      450      486      +36     
Impacted Files Coverage Δ
pkg/cluster/layout.go 85.00% <0.00%> (-4.48%) ⬇️
pkg/object/httpserver/cache.go 76.47% <ø> (ø)
pkg/object/httpserver/mux.go 63.24% <80.00%> (ø)
pkg/util/jmxtool/agent_controller.go 57.89% <0.00%> (-8.78%) ⬇️
pkg/object/meshcontroller/spec/spec.go 84.94% <0.00%> (-1.68%) ⬇️
pkg/cluster/cluster.go 51.87% <0.00%> (-1.03%) ⬇️
pkg/object/httpserver/httpserver.go 66.66% <0.00%> (ø)
pkg/object/httpserver/spec.go 7.14% <0.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19b6662...e616217. Read the comment docs.

pkg/api/profile.go Outdated Show resolved Hide resolved
@samutamm samutamm requested a review from xxx7xxxx March 21, 2022 01:32
@xxx7xxxx xxx7xxxx merged commit 8b8191d into easegress-io:main Mar 21, 2022
localvar added a commit that referenced this pull request Mar 29, 2022
* profile api status command

* start profiling endpoints

* stop path

* egctl profile client

* Apply suggestions from code review

Co-authored-by: Yun Long <[email protected]>
Co-authored-by: Bomin Zhang <[email protected]>

* validate profiling paths and do not modify static options

* remove filepath validation and move state to profile/profile.go

* error handling

* use lock to synchronize concurrent modifications

* change cluster level lock to profile level lock

Co-authored-by: Yun Long <[email protected]>
Co-authored-by: Bomin Zhang <[email protected]>
@samutamm samutamm deleted the toggle-profiling-api-532 branch April 6, 2022 00:07
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.

enable/disable profile at runtime
5 participants