xline-kv/Xline

[Feature]: Instrument the execution path of the command (i.e. `fast_path` or `slow_path`)

Opened this issue · 6 comments

Description about the feature

Instrument the execution path of the command (i.e. fast_path or slow_path).
Beneficial for debugging.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Nice to have a try with: await-tree

Hello there @iGxnon ! I'd like working on this issue. Could I be assigned this? Also, what exactly does "instrument" mean here?

Hello there @iGxnon ! I'd like working on this issue. Could I be assigned this? Also, what exactly does "instrument" mean here?

Greate to have you on board! There is a macros call instrument in tracing. It could be used to instrument a function every time it is called. So "instrument" here is similar to "log".
Currently, we have logged some simple information to display the execution path of the command. We hope to use more detailed information to show this process (i.e. use await-tree to indicate the duration of each await.).

GFX9 commented

Let me try

Let me try

Although you are free to do so, I think it would be better if you tried some other issue as it could mean wasted efforts from one side.

GFX9 commented

Let me try

Although you are free to do so, I think it would be better if you tried some other issue as it could mean wasted efforts from one side.

Ok