Add tracing support#20339
Conversation
eda6f69 to
bcc1533
Compare
The decisive question: extend, don't duplicateTo make point 1 in my previous comment concrete: stepping back from naming and The only genuinely new thing here is a bounded, always-on, in-memory ring (See above my comment) So the question is: Why can't this be added as an extension of one of those existing I think the burden of proof is on introducing a new parallel subsystem. This isn't a request to scrap the idea — the ring-buffer-you-dump-later angle |
|
I agree, it seems to duplicate a bit of existing functionality. On the other hand, I think it could also pave the way to e.g. the settable dot register: #19413 |
|
Marking as draft for now |
bcc1533 to
a2cc88f
Compare
Problem: Built-in tracing and profiling support of all the
commands/inputs/scripts/plugins.
Solution: Add configurable tracing support with documentation and
tests (Siddarth Balaji).
Built-in support to log and print the last few typed keys and executed
commands. To be used for debugging or understanding what when wrong.
Could also be used for statistics. Allows for various verbosity and
filtering levels.
related: vim#12046
related: vim#12063
related: vim#19377
Signed-off-by: Siddarth Balaji <49455519+cyan12green@users.noreply.github.com>
a2cc88f to
a107a53
Compare

Built-in support to log and print the last few typed keys and executed commands. To be used for debugging or understanding what went wrong. Could also be used for statistics. Allows for various verbosity and filtering levels.
related: #12046
related: #12063
This is my first time contributing, so any feedback is welcome. Currently, I haven't added any support for scripts, plugins or autocmd, so if I am heading in the right direction, then I can work on that.
Regards,
Sid