Added cf-profile.py script for processing profiling output#5915
Merged
olehermanse merged 2 commits intocfengine:masterfrom Dec 18, 2025
Merged
Added cf-profile.py script for processing profiling output#5915olehermanse merged 2 commits intocfengine:masterfrom
olehermanse merged 2 commits intocfengine:masterfrom
Conversation
Member
|
Nice. Times could be human readable (N seconds, minutes). maybe it would be nice to be able to exclude , but probably that's scope creep for no good reason since you can just --top MORE. |
Member
|
@victormlg nice, some things to improve, mainly based on your example output;
|
olehermanse
reviewed
Oct 29, 2025
larsewi
reviewed
Oct 29, 2025
d9ae7b8 to
d0315db
Compare
d0315db to
8e45dd6
Compare
16f8793 to
652623e
Compare
|
Marking this PR as stale due to inactivity; it will be closed in 7 days. |
652623e to
ba58df2
Compare
Contributor
Author
ba58df2 to
b9f6adf
Compare
Member
|
With a recent build from master I get JSON decode error: Seems to error on the last event before policy: |
b9f6adf to
3d5dede
Compare
Changelog: Title Signed-off-by: Victor Moene <victor.moene@northern.tech>
Signed-off-by: Victor Moene <victor.moene@northern.tech>
3d5dede to
c0e36cd
Compare
Member
|
@cf-bottom jenkins, please |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/13231/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-13231/ |
olehermanse
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sudo /var/cfengine/bin/cf-agent -Kp | python3 contrib/cf-profile/cf-profile.py --promises --functions --top 5output: