-
Notifications
You must be signed in to change notification settings - Fork 189
Added cf-profile.py script for processing profiling output #5915
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
base: master
Are you sure you want to change the base?
Conversation
Changelog: Title Signed-off-by: Victor Moene <[email protected]>
|
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. |
|
@victormlg nice, some things to improve, mainly based on your example output;
|
d9ae7b8 to
d0315db
Compare
Signed-off-by: Victor Moene <[email protected]>
d0315db to
8e45dd6
Compare
| # for event in events: | ||
| # hashmap[event["id"]] = event["elapsed"] |
Check notice
Code scanning / CodeQL
Commented-out code Note
| # for event in sorted(events, key=lambda x: x["id"].count(";"), reverse=True): | ||
| # parent = ";".join(event["id"].split(";")[:-1]) | ||
| # hashmap[parent] -= event["elapsed"] |
Check notice
Code scanning / CodeQL
Commented-out code Note
| # with open(args.profiling_output, "r") as f: | ||
| # data = json.load(f) |
Check notice
Code scanning / CodeQL
Commented-out code Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
libpromises/eval_context.c
Outdated
Check notice
Code scanning / CodeQL
Pointer argument is dereferenced without checking for NULL Note
sudo /var/cfengine/bin/cf-agent -Kp | python3 contrib/cf-profile/cf-profile.py --promises --functions --top 5output: