-
Notifications
You must be signed in to change notification settings - Fork 479
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
replay: support for external data #615
Comments
It looks an interesting feature. I have some comments on this.
Thanks for doing this work! |
One of the useful usage is to leave a note of function prototypes so that users can understand the meaning of each argument value. For this purpose, it can also be good to have a way to leave a note for some specific function.
|
@namhyung I love this. Greate JOB!!! |
@honggyukim I expect timestamp would be recorded by other means independent to uftrace. The task was selected randomly (using last task) for external data as it has no connection to task. That's why I put the event at depth 0 unconditionally. For function prototype I don't see the value of it. And it should be handled differently IMO. |
Color support for the external data might be great.
|
You might replace the |
[ 3659] 10303.321808251 | /* external-data: 0x1B[0;31m RED 0x1B[0m color support? */ [ 3659] 10303.321808251 | /* external-data: x1B[0;31m RED x1B[0m color support? */ [ 3659] 10303.321808251 | /* external-data: \0x1B[0;31m RED \0x1B[0m color support? */ [ 3659] 10303.321808251 | /* external-data: \x1B[0;31m RED \x1B[0m color support? */ [ 3659] 10303.321808251 | /* external-data: 0x1b[0;31m RED 0x1b[0m color support? */ [ 3659] 10303.321808251 | /* external-data: x1b[0;31m RED x1b[0m color support? */ [ 3659] 10303.321808251 | /* external-data: \0x1b[0;31m RED \0x1b[0m color support? */ [ 3659] 10303.321808251 | /* external-data: \x1b[0;31m RED \x1b[0m color support? */ Maybe |
There were some requests that it'd be nice to see some external data along with uftrace replay. It can be another process, user input or async event from the system. The simplest way I can think of is to have a text file describes the data with timestamp. The timestamp should be in sync with uftrace data (in nanosecond of the monotonic clock). The rest of the line will be treated as a message.
Here goes an example:
The code is available in review/extern-data-v1 branch.
The text was updated successfully, but these errors were encountered: