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

extend --trace option to control trace on/off with time duration #1699

Open
honggyukim opened this issue May 11, 2023 · 1 comment
Open

extend --trace option to control trace on/off with time duration #1699

honggyukim opened this issue May 11, 2023 · 1 comment

Comments

@honggyukim
Copy link
Collaborator

From #1643 (comment):

I think we can extend --trace option for later usage to control trace on/off with time duration. For example, we can support following usages.

# trace target program only for 1ms from the beginning.
$ uftrace record --trace=~1ms ./prog

# trace target program since 1ms elapsed from the beginning.
$ uftrace record --trace=1ms~ ./prog

# trace target program only from 1ms elapsed from the beginning to 3ms elapsed, then stop tracing.
# so target program is recorded during 2ms in total.
$ uftrace record --trace=1ms~3ms ./prog

Otherwise, we can support -r/--time-range option for this purpose instead for record time.

@honggyukim
Copy link
Collaborator Author

This is related to #1598.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant