Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Collect per-command resource usage data. #940

Merged
merged 6 commits into from
Nov 28, 2023
Merged

Conversation

gouttegd
Copy link
Contributor

@gouttegd gouttegd commented Oct 6, 2023

When running under ODK_DEBUG=yes, instruct make to run every command through a small wrapper around the actual shell to capture resource usage (CPU time and memory consumption) for each command, in addition to capturing resource usage for the entire run. The resource usage data is written into tmp/debug.log.

When running under ODK_DEBUG=yes, instruct the shell to run every
command through a small wrapper around the actual shell to capture
resource usage (CPU time and memory consumption) for each command, in
addition to capturing resource usage for the entire run. The resource
usage data is written into `tmp/debug.log`.
@gouttegd gouttegd marked this pull request as draft October 6, 2023 14:23
@gouttegd
Copy link
Contributor Author

gouttegd commented Oct 6, 2023

@matentzn @anitacaron I’ve done only limited testing of this for now. I’ll do more when I’m back next week.

@matentzn
Copy link
Contributor

matentzn commented Oct 9, 2023

This looks great!

@anitacaron when you have an opportunity can you test this?

@anitacaron
Copy link
Contributor

I tested it, and it looks good.

@gouttegd gouttegd marked this pull request as ready for review November 27, 2023 14:31
Copy link
Contributor

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern with this is that the ODK_DEBUG parameter gets extended to a potentially breaking feature (writing a, potentially large logfile), but I don't really think this is a realistic concern, as the logs in practice are not thaaaat big, and certainly not bigger than the associated ontologies times 20. I am happy with merging this.

@gouttegd gouttegd merged commit 325b67e into master Nov 28, 2023
1 check passed
@gouttegd gouttegd deleted the per-command-resource-usage branch November 28, 2023 12:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants