Skip to content

Add a script to time execution steps #2527

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

Merged
merged 9 commits into from
Apr 7, 2021
Merged

Add a script to time execution steps #2527

merged 9 commits into from
Apr 7, 2021

Conversation

ttuegel
Copy link
Contributor

@ttuegel ttuegel commented Apr 5, 2021

Fixes #2488.

This pull request adds kore-exec-step.sh, a shell script which times each rewrite step. To use it, copy the output of krun --dry-run ... to the command line of the script.


Review checklist

The author performs the actions on the checklist. The reviewer evaluates the work and checks the boxes as they are completed.

  • Summary. Write a summary of the changes. Explain what you did to fix the issue, and why you did it. Present the changes in a logical order. Instead of writing a summary in the pull request, you may push a clean Git history.
  • Documentation. Write documentation for new functions. Update documentation for functions that changed, or complete documentation where it is missing.
  • Tests. Write unit tests for every change. Write the unit tests that were missing before the changes. Include any examples from the reported issue as integration tests.
  • Clean up. The changes are already clean. Clean up anything near the changes that you noticed while working. This does not mean only spatially near the changes, but logically near: any code that interacts with the changes!

@ttuegel ttuegel requested a review from MirceaS April 6, 2021 14:20
Comment on lines +46 to +48
command time -f '%S,%U,%M' -o "${csv_file:?}" -a -q \
kore-exec "${kore_exec_args[@]}" \
--pattern "${last_result:?}" --output "${next_result:?}" --depth 1
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need the ?: 's in here but otherwise, it looks good

@rv-jenkins rv-jenkins merged commit 32d6090 into master Apr 7, 2021
@rv-jenkins rv-jenkins deleted the kore-exec-step branch April 7, 2021 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kore-exec: Script to time rewrite steps
3 participants